Skip to content

Commit

Permalink
ilcorsaroverde: fix season search for sonarr (#12613)
Browse files Browse the repository at this point in the history
Co-authored-by: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com>
  • Loading branch information
bakerboy448 and ilike2burnthing committed Dec 4, 2021
1 parent 5431d72 commit da5c939
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Jackett.Common/Definitions/ilcorsaroverde.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ settings:
- name: password
type: password
label: Password
- name: compatItal
type: checkbox
label: Improve Sonarr compatibility with the tracker's Italian season naming scheme by renaming Sxx to Stagione xx in searches. Can cause results already using Sxx to not be found.
default: false
- name: info30s
type: info
label: 30s Delay for Searches
Expand Down Expand Up @@ -164,6 +168,8 @@ search:
keywordsfilters:
- name: re_replace
args: ["(\\w+)", " +$1"] # prepend + to each word, all keywords must be 2 characters or more
- name: re_replace
args: ["(?i)(\\bS(\\d+)(E\\d+)?\\b)", "{{ if .Config.compatItal }}Stagione +$2 $3{{ else }}S$2$3{{ end }}"] # Replace SXXEYY with Stagione XX EYY

rows:
selector: div.search_results_posts
Expand Down

0 comments on commit da5c939

Please sign in to comment.