Skip to content

Commit

Permalink
cathoderaytube: season adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
garfield69 committed Aug 5, 2022
1 parent 3254756 commit a85aa83
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Jackett.Common/Definitions/cathoderaytube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit a85aa83

Please sign in to comment.