yggtorrent: make strip season optional. resolves #14565 (#14629)

This commit is contained in:
ilike2burnthing 2023-08-13 22:56:17 +01:00 committed by GitHub
parent 1811ddbd2c
commit 43622f8f59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -145,6 +145,10 @@ settings:
type: checkbox
label: Normalize release names by moving year after the title
default: false
- name: strip_season
type: checkbox
label: Strip season only (e.g. S01) from searches, as tracker does not support partial matches
default: true
- name: enhancedAnime
type: checkbox
label: Enhance Sonarr compatibility with anime by renaming episodes (xxx > Exxx). Can disturb movies search (e.g. Back To The Future 3 > Back To The Future E3).
@ -353,7 +357,7 @@ search:
args: ["[\\\\\\-\\.\\/!\\s]+", " "]
# strip season as site does not support partial matches
- name: re_replace
args: ["(?i)\\bS\\d{1,3}\\b", ""]
args: ["(?i)\\b(S\\d{1,3})\\b", "{{ if .Config.strip_season }}{{ else }}$1{{ end }}"]
- name: trim
# put each word in quotations to prevent exact phrase search
- name: re_replace

View File

@ -137,6 +137,10 @@ settings:
type: checkbox
label: Normalize release names by moving year after the title
default: false
- name: strip_season
type: checkbox
label: Strip season only (e.g. S01) from searches, as tracker does not support partial matches
default: true
- name: enhancedAnime
type: checkbox
label: Enhance Sonarr compatibility with anime by renaming episodes (xxx > Exxx). Can disturb movies search (e.g. Back To The Future 3 > Back To The Future E3).
@ -357,7 +361,7 @@ search:
args: ["[\\\\\\-\\.\\/!\\s]+", " "]
# strip season as site does not support partial matches
- name: re_replace
args: ["(?i)\\bS\\d{1,3}\\b", ""]
args: ["(?i)\\b(S\\d{1,3})\\b", "{{ if .Config.strip_season }}{{ else }}$1{{ end }}"]
- name: trim
# put each word in quotations to prevent exact phrase search
- name: re_replace