theempire: searching for season packs

This commit is contained in:
Bogdan
2025-03-21 11:18:11 +02:00
parent 4b159f8ffe
commit 661c2a79fe

View File

@@ -109,6 +109,13 @@ search:
sort: "{{ .Config.sort }}"
d: "{{ .Config.type }}"
keywordsfilters:
# if searching for season packs switch S01 to Series 1
- name: re_replace
args: ["(?i)\\bS0(\\d{1,2})\\b", "Series $1"]
- name: re_replace
args: ["(?i)\\bS(\\d{1,3})\\b", "Series $1"]
rows:
selector: table[border="0"] > tbody > tr.ttable:has(a[href^="browse.php?cat="]):not(:has(font[color="blue"])):not(:contains("*TCG*"))
@@ -122,6 +129,9 @@ search:
title:
selector: a[href^="details.php?id="]
attribute: title
filters:
- name: re_replace
args: ["(?i)\\bSeries[\\s]+(\\d+)\\b", "S$1"]
details:
selector: a[href^="details.php?id="]
attribute: href