Skip to content

Commit

Permalink
crt2fa: carryover cathodraytube updates
Browse files Browse the repository at this point in the history
  • Loading branch information
garfield69 committed Aug 5, 2022
1 parent a85aa83 commit 59744e1
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions src/Jackett.Common/Definitions/crt2fa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ caps:

modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]
tv-search: [q, season, ep, genre]
movie-search: [q, genre]

settings:
- name: cookie
Expand Down Expand Up @@ -71,10 +71,18 @@ search:
order_way: "{{ .Config.type }}"
action: advanced
filter_freeleech: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
taglist: ""
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:
- name: andmatch

fields:
category:
Expand All @@ -85,14 +93,26 @@ 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
download:
selector: a[href^="torrents.php?action=download&id="]
attribute: href
description:
genre:
selector: div.tags
filters:
- name: validate
args: "Action, Adventure, Animation, Comedy, Crime, Documentary, Drama, Family, Fantasy, History, Horror, Kids, Music, Mystery, News, Reality, Romance, SciFi, Soap, Talk, Thriller, War, Western"
description:
text: "{{ .Result.genre }}"
poster:
selector: td:nth-child(2) > script
filters:
Expand Down

0 comments on commit 59744e1

Please sign in to comment.