From 5f5b9afc6442de0e41e246734529df465b44c496 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Thu, 16 Apr 2020 13:55:49 +1200 Subject: [PATCH] topnow: new layout #8199 --- src/Jackett.Common/Definitions/topnow.yml | 28 +++++++++++++---------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/src/Jackett.Common/Definitions/topnow.yml b/src/Jackett.Common/Definitions/topnow.yml index 28e75b89a..d530a4b2c 100644 --- a/src/Jackett.Common/Definitions/topnow.yml +++ b/src/Jackett.Common/Definitions/topnow.yml @@ -21,32 +21,36 @@ settings: [] - download: - selector: a#torrent - attribute: href - search: paths: - # http://topnow.se/search.php?dayq=mandalorian - - path: search.php + # https://topnow.se/index.php?search= + - path: index.php inputs: - dayq: "{{.Keywords}}" + search: "{{ .Keywords }}" + keywordsfilters: + # the site uses % for wildcard + - name: re_replace + args: ["[^a-zA-Z0-9]+", "%"] + rows: - selector: table.topic_table + # old cards do not have a download link + selector: table.each_card_table:has(a[href^="/download/"]) + fields: category: text: other title: - selector: td.topic_head + selector: h2.titles details: - selector: td.topic_content a - attribute: href + # new cards do not have details page links + text: / download: - selector: td.topic_content a + selector: a[href^="/download/"] attribute: href banner: selector: img attribute: src + optional: true description: selector: pre.imgDescription filters: