cathoderaytube: season adjustments

source: 88a443b306
This commit is contained in:
Garfield69 2022-08-06 08:09:35 +12:00
parent 3254756361
commit a85aa83e11
1 changed files with 13 additions and 0 deletions

View File

@ -83,6 +83,12 @@ search:
filter_freeleech: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
taglist: "{{ .Query.Genre }}"
keywordsfilters:
- name: re_replace
args: ["(?i)\\bS0*(\\d+)\\b", "$1"]
- name: re_replace
args: ["(?i)\\bS0*(\\d+)E0*(\\d+)\\b", "$1"]
rows:
selector: table#torrent_table > tbody > tr[class^="torrent row"]:has(a[href*="action=download"])
filters:
@ -97,6 +103,13 @@ search:
args: \[(\d+)\]
title:
selector: a[href^="/torrents.php?id="]
filters:
- name: re_replace # Seasons X-Y --> SX-SY
args: ["(?i)seasons?\\s*(\\d+)\\s*-\\s*(\\d+)", "S$1-S$2"]
- name: re_replace # Season X --> S0X
args: ["(?i)season\\s*(\\d+)", "S$"]
- name: re_replace
args: ["(?i)Complete\\s+Series", ""]
details:
selector: a[href^="/torrents.php?id="]
attribute: href