crt2fa: carryover cathodraytube updates

This commit is contained in:
Garfield69 2022-08-06 08:10:39 +12:00
parent a85aa83e11
commit 59744e1685
1 changed files with 24 additions and 4 deletions

View File

@ -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
@ -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:
@ -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: