Skip to content

Commit

Permalink
yggtorrent, yggcookie: fix #12084 resolves #12100
Browse files Browse the repository at this point in the history
  • Loading branch information
garfield69 committed Jul 30, 2021
1 parent 9fab1e3 commit e136e75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Jackett.Common/Definitions/yggcookie.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ search:
- name: re_replace # Full season S >= 10
args: ["(?i)(.*)s([1-9][0-9])$", "$1 S$2"]
- name: re_replace # episode number at the end "123" to "E123"
args: ["(.*)(\\.| |\\-)(\\d{2,3})(.*)", "$1 E$3 $4"]
args: ["(.*)(\\.|\\s|\\-)(\\d{2,3})(\\.|\\s|\\-)(.*)", "{{ if .Config.enhancedAnime }}$1 E$3 $5{{ else }}$1$2$3$4$5{{ end }}"]
# END ANIME HACK
- name: replace
args: ["\"", ""]
Expand Down Expand Up @@ -291,7 +291,7 @@ search:
# Sonarr need E in front of 3 digit number or else it thinks it is episode
# S01E10 for number 110 for example ==> enhancedAnime
- name: re_replace
args: ["(.*)(\\.| |\\-)(\\d{2,3})(\\.| |\\-)(.*)", "$1 E$3 $5"]
args: ["(.*)(\\.|\\s|\\-)(\\d{2,3})(\\.|\\s|\\-)(.*)", "$1 E$3 $5"]
title:
text: "{{ if .Config.enhancedAnime }}{{ .Result.title_anime }}{{ else }}{{ .Result.title_phase3 }}{{ end }}"
details:
Expand Down
4 changes: 2 additions & 2 deletions src/Jackett.Common/Definitions/yggtorrent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ search:
- name: re_replace # Full season S >= 10
args: ["(?i)(.*)s([1-9][0-9])$", "$1 S$2"]
- name: re_replace # episode number at the end "123" to "E123"
args: ["(.*)(\\.| |\\-)(\\d{2,3})(.*)", "$1 E$3 $4"]
args: ["(.*)(\\.|\\s|\\-)(\\d{2,3})(\\.|\\s|\\-)(.*)", "{{ if .Config.enhancedAnime }}$1 E$3 $5{{ else }}$1$2$3$4$5{{ end }}"]
# END ANIME HACK
- name: replace
args: ["\"", ""]
Expand Down Expand Up @@ -299,7 +299,7 @@ search:
# Sonarr need E in front of 3 digit number or else it thinks it is episode
# S01E10 for number 110 for example ==> enhancedAnime
- name: re_replace
args: ["(.*)(\\.| |\\-)(\\d{2,3})(\\.| |\\-)(.*)", "$1 E$3 $5"]
args: ["(.*)(\\.|\\s|\\-)(\\d{2,3})(\\.|\\s|\\-)(.*)", "$1 E$3 $5"]
title:
text: "{{ if .Config.enhancedAnime }}{{ .Result.title_anime }}{{ else }}{{ .Result.title_phase3 }}{{ end }}"
details:
Expand Down

0 comments on commit e136e75

Please sign in to comment.