From 5cfa72361b068a25619191cb60a2268f078d301b Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Thu, 2 Apr 2020 10:59:23 +1300 Subject: [PATCH] assorted: refresh missing cat handling. --- src/Jackett.Common/Definitions/idope.yml | 2 ++ src/Jackett.Common/Definitions/magnetdl.yml | 2 ++ src/Jackett.Common/Definitions/torrentproject2.yml | 4 ++-- src/Jackett.Common/Definitions/torrentquest.yml | 6 ++++-- src/Jackett.Common/Definitions/yggcookie.yml | 1 - src/Jackett.Common/Definitions/yggtorrent.yml | 3 +-- 6 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/Jackett.Common/Definitions/idope.yml b/src/Jackett.Common/Definitions/idope.yml index 2bd752e3b..141935401 100644 --- a/src/Jackett.Common/Definitions/idope.yml +++ b/src/Jackett.Common/Definitions/idope.yml @@ -66,6 +66,8 @@ title: selector: div.resultdivtop a div.resultdivtopname category: + text: 0 + category|noappend: optional: true selector: div.resultdivbotton div.resultdivbottoncategory case: diff --git a/src/Jackett.Common/Definitions/magnetdl.yml b/src/Jackett.Common/Definitions/magnetdl.yml index 37c87a408..f234b8718 100644 --- a/src/Jackett.Common/Definitions/magnetdl.yml +++ b/src/Jackett.Common/Definitions/magnetdl.yml @@ -68,6 +68,8 @@ selector: td.n a attribute: title category: + text: Other + category|noappend: optional: true selector: td[class^="t"] details: diff --git a/src/Jackett.Common/Definitions/torrentproject2.yml b/src/Jackett.Common/Definitions/torrentproject2.yml index 067b58a72..b567902cf 100644 --- a/src/Jackett.Common/Definitions/torrentproject2.yml +++ b/src/Jackett.Common/Definitions/torrentproject2.yml @@ -78,8 +78,8 @@ fields: category: - text: "Other" - category: + text: Other + category|noappend: optional: true selector: div > span:nth-child(1) > span title: diff --git a/src/Jackett.Common/Definitions/torrentquest.yml b/src/Jackett.Common/Definitions/torrentquest.yml index 39b548104..ab8e4df31 100644 --- a/src/Jackett.Common/Definitions/torrentquest.yml +++ b/src/Jackett.Common/Definitions/torrentquest.yml @@ -53,8 +53,8 @@ # return movie and tv results if there are no search parms supplied (for use with the TEST button) # https://torrentquest.com/download/movies/se/desc/ # https://torrentquest.com/m/mandalorian-s01e07/age/desc/ - - path: "{{ if .Keywords }}{{ re_replace .Keywords \"(.).*\" \"$1\" }}/{{ .Keywords }}{{else}}download/movies{{end}}/{{ .Config.sort }}/{{ .Config.type }}/" - - path: "{{ if .Keywords }}{{else}}download/tv/{{ .Config.sort }}/{{ .Config.type }}/{{end}}" + - path: "{{ if .Keywords }}{{ re_replace .Keywords \"(.).*\" \"$1\" }}/{{ .Keywords }}{{else}}download/movies{{end}}/{{ .Config.sort }}/{{ .Config.type }}/" + - path: "{{ if .Keywords }}{{else}}download/tv/{{ .Config.sort }}/{{ .Config.type }}/{{end}}" rows: selector: tr:has(td.m) @@ -64,6 +64,8 @@ selector: td.n a attribute: title category: + text: Other + category|noappend: optional: true selector: td[class^="t"] details: diff --git a/src/Jackett.Common/Definitions/yggcookie.yml b/src/Jackett.Common/Definitions/yggcookie.yml index 41253899d..148ceb174 100644 --- a/src/Jackett.Common/Definitions/yggcookie.yml +++ b/src/Jackett.Common/Definitions/yggcookie.yml @@ -269,7 +269,6 @@ category: # changed the catid into and hidden div as of last tracker problem selector: ":nth-child(1) > div.hidden" - comments: optional: true selector: td:nth-child(1) > a[href$="#comments"] diff --git a/src/Jackett.Common/Definitions/yggtorrent.yml b/src/Jackett.Common/Definitions/yggtorrent.yml index 5c5456599..1946f2d65 100644 --- a/src/Jackett.Common/Definitions/yggtorrent.yml +++ b/src/Jackett.Common/Definitions/yggtorrent.yml @@ -193,7 +193,7 @@ search: followredirect: true keywordsfilters: - # Hack For anime Search ! example : replace sonarr search of + # Hack For anime Search ! example : replace sonarr search of # One Punch Man S2 10 OR One Punch Man S2 2 # BY # One Punch Man S02E10 OR One Punch Man S02E02 @@ -283,7 +283,6 @@ category: # changed the catid into and hidden div as of last tracker problem selector: ":nth-child(1) > div.hidden" - comments: optional: true selector: td:nth-child(1) > a[href$="#comments"]