From fe3ebd652810712a05c2b715b57435951762d65a Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Thu, 9 Apr 2020 11:25:08 +1200 Subject: [PATCH] kat.li: handle proxy *.nz html. #8099 --- .../Definitions/kickasstorrent-kathow.yml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/Jackett.Common/Definitions/kickasstorrent-kathow.yml b/src/Jackett.Common/Definitions/kickasstorrent-kathow.yml index b1afa7928..f5d4773da 100644 --- a/src/Jackett.Common/Definitions/kickasstorrent-kathow.yml +++ b/src/Jackett.Common/Definitions/kickasstorrent-kathow.yml @@ -28,6 +28,10 @@ applications: PC xxx: XXX other: Other + # additional from proxy + video: TV # ,Movies + porn: XXX + audio: Audio modes: search: [q] @@ -70,17 +74,31 @@ - name: tolower - name: trim args: / + # proxy uses Video for both TV and Movies + category: + optional: true + selector: span[id^="cat_"] > strong > a:contains("Video") + filters: + - name: replace + args: ["Video", "movies"] title: selector: td:nth-child(1) > div > div > a[class="cellMainLink"] details: selector: td:nth-child(1) > div > div > a[class="cellMainLink"] attribute: href download: + optional: true + # the official site delivers mylink so we skip to the magnet URI selector: td:nth-child(1) > div > a[data-download=""] attribute: href filters: - name: querystring args: url + download: + optional: true + # the proxy delivers magnet URI + selector: a[href^="magnet:?xt="] + attribute: href size: selector: td:nth-child(2) filters: @@ -96,6 +114,10 @@ - name: replace args: ["N/A", "0"] leechers: + # default for proxy which has an empty leechers selector + text: 0 + leechers: + optional: true selector: td:nth-child(5) filters: - name: replace