From 6e03a78f4eaae2ae7806bde2f3d66a1359ce0e5e Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Tue, 12 Apr 2022 21:00:58 +1200 Subject: [PATCH] omgwtftrackr: refine category detection --- .../Definitions/omgwtftrackr.yml | 56 ++----------------- 1 file changed, 5 insertions(+), 51 deletions(-) diff --git a/src/Jackett.Common/Definitions/omgwtftrackr.yml b/src/Jackett.Common/Definitions/omgwtftrackr.yml index 46e04bed1..4210d4d80 100644 --- a/src/Jackett.Common/Definitions/omgwtftrackr.yml +++ b/src/Jackett.Common/Definitions/omgwtftrackr.yml @@ -122,57 +122,11 @@ search: fields: category: - selector: td:nth-child(1) - case: - "b:contains(\"EN/0DAY\")": 1 - "b:contains(\"EN/APPS\")": 2 - "b:contains(\"EN/BLURAY\")": 3 - "b:contains(\"EN/DVDR\")": 4 - "b:contains(\"EN/EBOOKS\")": 5 - "b:contains(\"EN/FLAC\")": 6 - "b:contains(\"EN/FLAC-today\")": 7 - "b:contains(\"EN/GAMES\")": 8 - "b:contains(\"EN/MBLURAY\")": 9 - "b:contains(\"EN/MDVDR\")": 10 - "b:contains(\"EN/MP3\")": 11 - "b:contains(\"EN/MVID\")": 12 - "b:contains(\"EN/PS3\")": 13 - "b:contains(\"EN/PS4\")": 14 - "b:contains(\"EN/PSP\")": 15 - "b:contains(\"EN/TV-DVDR\")": 16 - "b:contains(\"EN/TV-DVDRIP\")": 17 - "b:contains(\"EN/TV-HDRIP\")": 18 - "b:contains(\"EN/TV-X264-HD\")": 19 - "b:contains(\"EN/TV-X264-SD\")": 20 - "b:contains(\"EN/WII\")": 21 - "b:contains(\"EN/X264\")": 22 - "b:contains(\"EN/XBOX360\")": 23 - "b:contains(\"EN/XBOXONE\")": 24 - "b:contains(\"EN/XVID\")": 25 - "b:contains(\"EN/XXX\")": 26 - "b:contains(\"EN/XXX-0DAY\")": 27 - "b:contains(\"EN/XXX-DVDR\")": 28 - "b:contains(\"EN/XXX-iMAGESETS\")": 29 - "b:contains(\"DE/BLURAY\")": 30 - "b:contains(\"DE/DVDR\")": 31 - "b:contains(\"DE/TV\")": 32 - "b:contains(\"DE/X264\")": 33 - "b:contains(\"DE/XVID\")": 34 - "b:contains(\"FR/ANIME\")": 35 - "b:contains(\"FR/DVDR\")": 36 - "b:contains(\"FR/TV-DVDR\")": 37 - "b:contains(\"FR/TV\")": 38 - "b:contains(\"FR/X264\")": 39 - "b:contains(\"FR/XVID\")": 40 - "b:contains(\"NL/BLURAY\")": 41 - "b:contains(\"NL/DVDR\")": 42 - "b:contains(\"NL/TV-DVDR\")": 43 - "b:contains(\"NL/TV\")": 44 - "b:contains(\"NL/X264\")": 45 - "b:contains(\"NL/XVID\")": 46 - "b:contains(\"ES/TV\")": 47 - "b:contains(\"ES/X264\")": 48 - "b:contains(\"ES/XVID\")": 49 + selector: td:nth-child(1) > div + attribute: id + filters: + - name: regexp + args: (\d+) title: selector: a[href^="torrents.php?id="] details: