From 003d37ab27c6b713e3127ead9a4b0229410b2652 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Thu, 9 Jan 2020 08:34:42 +1300 Subject: [PATCH] tfile: exclude torrents without size. #6870 because they will not have a download selector in the torrent details page. --- src/Jackett.Common/Definitions/tfile.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/Jackett.Common/Definitions/tfile.yml b/src/Jackett.Common/Definitions/tfile.yml index 21eed92fc..aba0ce9d8 100644 --- a/src/Jackett.Common/Definitions/tfile.yml +++ b/src/Jackett.Common/Definitions/tfile.yml @@ -862,8 +862,10 @@ $raw: "{{range .Categories}}f[]={{.}}&{{end}}" q: "{{ .Keywords }}" o: newest + rows: - selector: table > tbody > tr.tor + selector: table > tbody > tr.tor:has(td:nth-child(4):contains("B")) + fields: category: selector: td.f a[href*="?f="] @@ -894,12 +896,7 @@ selector: td.t a attribute: href size: - selector: td:nth-child(4):not(:contains("B")) - optional: true - text: "0 B" - size: - selector: td:nth-child(4):contains("B") - optional: true + selector: td:nth-child(4) seeders: text: 0 seeders: