Skip to content

Commit

Permalink
ilcorsaronero: cleanup for Sonarr #11449
Browse files Browse the repository at this point in the history
  • Loading branch information
garfield69 committed Apr 2, 2021
1 parent 10f6125 commit 78b4486
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions src/Jackett.Common/Definitions/ilcorsaronero.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,8 @@ search:
filters:
- name: split
args: ["/", -1]
- name: diacritics
args: replace
- name: urldecode
- name: re_replace # replace special characters with " " (space)
args: ["[\\[!\"#$%&'()*+,\\-.\\/:;<=>?@[\\]^_`{|}~]", " "]
- name: replace # replace underscore with " " (space)
args: ["_", " "]
- name: re_replace # replace multiple spaces
args: ["[ ]{2,}", " "]
# normalize to SXXEYY format
Expand All @@ -109,6 +106,23 @@ search:
args: ["(?i)\\b(?:Puntate\\s*)(\\d+)\\s?(\\d+)", "E0$1-0$2"]
- name: re_replace # rimozioni varie
args: ["(?i)(Serie completa|Completat?a?|in pausa)", ""]
# cleanup for Sonarr
- name: re_replace # EP 3 4 to E3-4
args: ["(?i)\\sEP\\s(\\d{1,2})\\s(E?\\s?\\d{1,2})\\s", " E$1-$2 "]
- name: re_replace # S02E04 05 to S02E04-05
args: ["(?i)\\sS(\\d{1,2})\\s?E\\s?(\\d{1,2})\\s(E?\\s?\\d{1,2})\\s", " S$1E$2-$3 "]
- name: re_replace
args: ["(?i)AC3\\s?(\\d)\\s(\\d)", "AC3 $1.$2"]
- name: re_replace
args: ["(?i) DD\\s?(\\d)\\s(\\d)", " DD $1.$2"]
- name: re_replace
args: ["(?i) DDP\\s?(\\d)\\s(\\d)", " DDP $1.$2"]
- name: re_replace
args: ["(?i)\\sE\\s?AC3", " EAC3"]
- name: re_replace
args: ["(?i)WEB\\sDL", "WEBDL"]
- name: re_replace
args: ["(?i)HDTVRIP", "HDTV"]
description:
selector: td:nth-child(1) a
attribute: href
Expand Down

0 comments on commit 78b4486

Please sign in to comment.