From 584ba3cbfe70de9861245fbc166fc5b13c3755b5 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Thu, 30 Apr 2020 09:16:13 +1200 Subject: [PATCH] torrentbomb: drop rows without date. resolves #8408 as they lead to details apges without .torrent or magnets. - also fetch up to 5 pages (14 rows per page) - add new cat - add .Today.Year to keyword-less search for TEST --- .../Definitions/torrentbomb.yml | 25 ++++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/src/Jackett.Common/Definitions/torrentbomb.yml b/src/Jackett.Common/Definitions/torrentbomb.yml index 4dfee0786..641f1db26 100644 --- a/src/Jackett.Common/Definitions/torrentbomb.yml +++ b/src/Jackett.Common/Definitions/torrentbomb.yml @@ -28,6 +28,7 @@ - {id: "etc", cat: Other, desc: "토렌트 기타 (Other)"} - {id: "torrent_magnet", cat: Other, desc: "토렌트 마그넷 자료실 (Magnets)"} - {id: "torrent_netflix", cat: Movies, desc: "넷플릭스 (Netflix)"} + - {id: "torrent", cat: Other, desc: "토렌트 기타 (Other)"} modes: search: [q] @@ -42,20 +43,32 @@ selector: a[href*="magnet:?xt="] attribute: href filters: - - name: querystring - args: magnet:?xt - - name: prepend - args: "magnet:?xt=" + # strip the leading magnet provider site + - name: re_replace + args: ["^(.+?\\/magnet.php\\?)(.+?)$", "$2"] search: paths: # https://torrent.vet/search.php?keyword=2020 + # 14 rows per page!?! - path: search.php + - path: search.php + inputs: + page: 2 + - path: search.php + inputs: + page: 3 + - path: search.php + inputs: + page: 4 + - path: search.php + inputs: + page: 5 inputs: - keyword: "{{ if .Keywords }}{{ .Keywords }}{{else}}2020{{end}}" + keyword: "{{ if .Keywords }}{{ .Keywords }}{{else}}{{ .Today.Year }}{{end}}" rows: - selector: section.sch_res_list > ul > li + selector: section.sch_res_list > ul > li:has(span.sch_datetime:contains(":")) fields: category: