From 77837b7483971d7d67b4408e507fab52add9cb5a Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Wed, 4 Mar 2020 08:40:52 +1300 Subject: [PATCH] filmclub: optional config to strip year from title. #7289 --- src/Jackett.Common/Definitions/filmsclub.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Jackett.Common/Definitions/filmsclub.yml b/src/Jackett.Common/Definitions/filmsclub.yml index dfdd3098a..35f508019 100644 --- a/src/Jackett.Common/Definitions/filmsclub.yml +++ b/src/Jackett.Common/Definitions/filmsclub.yml @@ -1,4 +1,4 @@ ---- +--- site: filmsclub name: FilmsClub description: "FilmsClub is a RUSSIAN Semi-Private Torrent Tracker for MOVIES / TV" @@ -33,6 +33,10 @@ type: checkbox label: Strip Russian Letters default: false + - name: stripyear + type: checkbox + label: Strip the Year from the Title + default: false - name: info_search type: info label: "Searching with Season / Episode (S01E01)" @@ -85,7 +89,7 @@ "div:contains(\"Аниме\")": 5 "div:contains(\"Мультфильмы\")": 6 - title: + title_with_year: selector: a[href^="/torrent/"] filters: # normalize to SXXEYY format @@ -105,6 +109,10 @@ args: ["WEBDLRip", "WEBDL"] - name: replace args: ["HDTVRip", "HDTV"] + title_without_year: + text: "{{ re_replace .Result.title_with_year \"\\([1|2][0-9]{3}\\)\" \"\" }}" + title: + text: "{{ if .Config.stripyear }}{{ .Result.title_without_year }}{{else}}{{ .Result.title_with_year }}{{end}}" details: selector: a[href^="/torrent/"] attribute: href