UnionFansub: Improve season support (#15539)

This commit is contained in:
Miguel Ángel López Vicente
2024-08-16 09:13:20 +02:00
committed by GitHub
parent 312a355f20
commit 9e684ffad6

View File

@@ -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