From 016471156eba28b50387d30f5e1c5c82ebb5f4a2 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Sun, 18 Feb 2024 06:02:01 +1300 Subject: [PATCH] 1337x: tidy up --- src/Jackett.Common/Definitions/1337x.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Jackett.Common/Definitions/1337x.yml b/src/Jackett.Common/Definitions/1337x.yml index 870b188a1..7a1198271 100644 --- a/src/Jackett.Common/Definitions/1337x.yml +++ b/src/Jackett.Common/Definitions/1337x.yml @@ -236,7 +236,7 @@ search: args: ["(?i)WEB\\sDL", "WEB-DL"] - name: re_replace args: ["(?i)HDTVRIP", "HDTV"] - category_sub: + category_optional: optional: true selector: td[class^="coll-1"] a[href^="/sub/"] attribute: href @@ -245,7 +245,7 @@ search: - name: split args: ["/", 2] category: - text: "{{ if .Result.category_sub }}{{ .Result.category_sub }}{{ else }}40{{ end }}" + text: "{{ if .Result.category_optional }}{{ .Result.category_optional }}{{ else }}40{{ end }}" details: selector: td[class^="coll-1"] a[href^="/torrent/"] attribute: href