mirror of https://github.com/Jackett/Jackett
nyaasi: parse seasons from titles when possible
This commit is contained in:
parent
45fd263cc1
commit
dd48a3bd29
|
@ -148,13 +148,27 @@ search:
|
||||||
args: ["=", -1]
|
args: ["=", -1]
|
||||||
title_default:
|
title_default:
|
||||||
selector: td:nth-child(2) a:last-of-type
|
selector: td:nth-child(2) a:last-of-type
|
||||||
title:
|
title_spanish:
|
||||||
selector: td:nth-child(2) a:last-of-type:contains("[PuyaSubs!] ")
|
selector: td:nth-child(2) a:last-of-type:contains("[PuyaSubs!] ")
|
||||||
optional: true
|
optional: true
|
||||||
default: "{{ .Result.title_default }}"
|
|
||||||
filters:
|
filters:
|
||||||
- name: append
|
- name: append
|
||||||
args: " Spanish"
|
args: " Spanish"
|
||||||
|
title:
|
||||||
|
text: "{{ or (.Result.title_spanish) (.Result.title_default) }}"
|
||||||
|
filters:
|
||||||
|
- name: re_replace
|
||||||
|
args: ["(?i)\\b(\\d{2,})(st|nd|rd|th) Season\\b", "$0 S$1"]
|
||||||
|
- name: re_replace
|
||||||
|
args: ["(?i)\\b(\\d)(st|nd|rd|th) Season\\b", "$0 S0$1"]
|
||||||
|
- name: re_replace
|
||||||
|
args: ["(?i)\\bSeason (\\d{2,})\\b", "$0 S$1"]
|
||||||
|
- name: re_replace
|
||||||
|
args: ["(?i)\\bSeason (\\d)\\b", "$0 S0$1"]
|
||||||
|
- name: re_replace
|
||||||
|
args: ["\\b (II) - (\\d+)", " $1 S02 - $2"]
|
||||||
|
- name: re_replace
|
||||||
|
args: ["\\b (III) - (\\d+)", " $1 S03 - $2"]
|
||||||
details:
|
details:
|
||||||
selector: td:nth-child(2) a:last-of-type
|
selector: td:nth-child(2) a:last-of-type
|
||||||
attribute: href
|
attribute: href
|
||||||
|
|
Loading…
Reference in New Issue