filmclub: optional config to strip year from title. #7289

This commit is contained in:
Garfield69 2020-03-04 08:40:52 +13:00
parent 96e5e259e9
commit 77837b7483
1 changed files with 10 additions and 2 deletions

View File

@ -1,4 +1,4 @@
--- ---
site: filmsclub site: filmsclub
name: FilmsClub name: FilmsClub
description: "FilmsClub is a RUSSIAN Semi-Private Torrent Tracker for MOVIES / TV" description: "FilmsClub is a RUSSIAN Semi-Private Torrent Tracker for MOVIES / TV"
@ -33,6 +33,10 @@
type: checkbox type: checkbox
label: Strip Russian Letters label: Strip Russian Letters
default: false default: false
- name: stripyear
type: checkbox
label: Strip the Year from the Title
default: false
- name: info_search - name: info_search
type: info type: info
label: "Searching with Season / Episode (S01E01)" label: "Searching with Season / Episode (S01E01)"
@ -85,7 +89,7 @@
"div:contains(\"Аниме\")": 5 "div:contains(\"Аниме\")": 5
"div:contains(\"Мультфильмы\")": 6 "div:contains(\"Мультфильмы\")": 6
title: title_with_year:
selector: a[href^="/torrent/"] selector: a[href^="/torrent/"]
filters: filters:
# normalize to SXXEYY format # normalize to SXXEYY format
@ -105,6 +109,10 @@
args: ["WEBDLRip", "WEBDL"] args: ["WEBDLRip", "WEBDL"]
- name: replace - name: replace
args: ["HDTVRip", "HDTV"] 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: details:
selector: a[href^="/torrent/"] selector: a[href^="/torrent/"]
attribute: href attribute: href