NNC: add season search support resolves #10481

This commit is contained in:
Garfield69 2020-12-13 06:58:10 +13:00
parent f8d3781f7a
commit eaa4126da5
1 changed files with 5 additions and 0 deletions

View File

@ -757,6 +757,11 @@ search:
nm: "{{ .Keywords }}"
pn: ""
submit: "Поиск"
keywordsfilters:
- name: re_replace # S01 to сезон 1
args: ["(?i)\\bS0*(\\d+)\\b", " сезон $1"]
- name: re_replace # S01E01 to сезон 1 серии 1
args: ["(?i)\\bS0*(\\d+)E0*(\\d+)\\b", " сезон $1 серии $2"]
rows:
selector: table.forumline.tablesorter > tbody > tr:has(a[href^="viewtopic.php?t="]):has(a[href^="download.php?id="])