From 5894372c495e164609cc1a1d6f835a33b3554630 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Wed, 28 Apr 2021 06:53:05 +1200 Subject: [PATCH] redbits: detect vose resolves #11615 also handle single season releases tidy up title word spacing --- src/Jackett.Common/Definitions/redbits.yml | 30 +++++++++++++++++++--- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/src/Jackett.Common/Definitions/redbits.yml b/src/Jackett.Common/Definitions/redbits.yml index 0a00289c6..2d995b1c6 100644 --- a/src/Jackett.Common/Definitions/redbits.yml +++ b/src/Jackett.Common/Definitions/redbits.yml @@ -68,6 +68,9 @@ login: search: paths: - path: torrents/filter + keywordsfilters: + - name: re_replace + args: ["(?i)\\bS0*(\\d+)\\b", "T$1"] inputs: $raw: "{{ range .Categories }}categories[]={{.}}&{{end}}" search: "{{ if .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}" # for dashboard imdbid search @@ -99,23 +102,42 @@ search: - name: regexp args: "/categories/(\\d+)" title: - selector: a[href*="/torrents/"] + selector: a.view-torrent:contains("VOSE") + optional: true filters: - name: re_replace - args: ["\\[", " "] + args: ["(?i)bdfull", "BluRay"] # BDfull -> BluRay - name: re_replace - args: ["\\]", " "] + args: ["(?i)RedBits", ""] # Delete RedBits + - name: append + args: " English" # Add english to fix Sonarr/Radarr language + - name: re_replace + args: ["\\[|\\]", " "] + - name: re_replace + args: [" ", " "] + - name: re_replace + args: ["(?i)T(\\d{1,2})\\b", "S$1"] + title: + selector: a.view-torrent:not(:contains("VOSE")) + optional: true + filters: - name: re_replace args: ["(?i)bdfull", "BluRay"] # BDfull -> BluRay - name: re_replace args: ["(?i)RedBits", ""] # Delete RedBits - name: append args: " Spanish" # Add spanish to fix Sonarr/Radarr language + - name: re_replace + args: ["\\[|\\]", " "] + - name: re_replace + args: [" ", " "] + - name: re_replace + args: ["(?i)T(\\d{1,2})\\b", "S$1"] download: selector: a[href*="/download/"] attribute: href details: - selector: a[href*="/torrents/"] + selector: a.view-torrent attribute: href poster: selector: div.torrent-poster img