mirror of
https://github.com/Jackett/Jackett.git
synced 2025-10-02 00:32:55 +02:00
UnionFansub: Improve season support (#15539)
This commit is contained in:

committed by
GitHub

parent
312a355f20
commit
9e684ffad6
@@ -98,8 +98,22 @@ search:
|
||||
filters:
|
||||
- name: querystring
|
||||
args: cat
|
||||
title:
|
||||
title_fansub:
|
||||
selector: td:nth-child(2) span
|
||||
optional: true
|
||||
title_season:
|
||||
selector: td:nth-child(2) a
|
||||
filters:
|
||||
- name: re_replace
|
||||
args: ["(?i)\\b(\\d{1,4})([ºª])\\b", "$1"]
|
||||
- name: re_replace
|
||||
args: ["(?i)\\b(Temporada|Season) (\\d+)\\b", "S$2"]
|
||||
- name: re_replace
|
||||
args: ["(?i)\\b(\\d+)(st|nd|rd|th) (Season|Temporada)\\b", "S$1"]
|
||||
- name: re_replace
|
||||
args: ["(?i)\\b(Season|Temporada) (\\d+)(st|nd|rd|th)\\b", "S$2"]
|
||||
title:
|
||||
text: "{{ .Result.title_season }} {{ if .Result.title_fansub }} [{{ .Result.title_fansub }}]{{ else }}{{ end }}"
|
||||
details:
|
||||
selector: td:nth-child(2) a
|
||||
attribute: href
|
||||
|
Reference in New Issue
Block a user