nyaasi: add setting to strip season 1 keywords

resolves https://github.com/Prowlarr/Indexers/issues/420
This commit is contained in:
ilike2burnthing 2024-03-20 16:05:46 +00:00 committed by GitHub
parent 8aba7aedc5
commit 02f3175656
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -85,6 +85,10 @@ settings:
type: checkbox
label: Improve Sonarr compatibility by trying to add Season information into Release Titles
default: false
- name: strip_s01
type: checkbox
label: Remove first season keywords (S1/S01/Season 1), as some results do not include this for first/single season releases
default: false
- name: radarr_compatibility
type: checkbox
label: Improve Radarr compatibility by removing year information from keywords and adding it to Release Titles
@ -161,6 +165,8 @@ search:
keywordsfilters:
- name: re_replace
args: [" *\\b((?:19|20)\\d{2})\\b", "{{ if .Config.radarr_compatibility }}{{ else }} $1{{ end }}"]
- name: re_replace
args: ["(?i) *\\b(S(?:0|eason *)?1)\\b", "{{ if .Config.strip_s01 }}{{ else }} $1{{ end }}"]
rows:
selector: tr.default,tr.danger,tr.success