assorted: refresh missing cat handling.

This commit is contained in:
Garfield69 2020-04-01 20:10:32 +13:00
parent a08ad7e16d
commit 964803d170
6 changed files with 27 additions and 28 deletions

View File

@ -174,6 +174,8 @@
- name: replace
args: ["\u000f", ""] # get rid of unwanted character
category:
text: 40
category|noappend:
optional: true
selector: td[class^="coll-1"] a[href^="/sub/"]
attribute: href

View File

@ -10,30 +10,31 @@
caps:
categories:
"1080p": Movies/HD
"720p": Movies/HD
"1080P": Movies/HD
"720P": Movies/HD
"BR-RIP": Movies/BluRay
"BR-SCREENER": Movies/Other
"DVDRip": Movies/DVD
"DVDScreener": Movies/Other
"HC HDRip": Movies/HD
"DVDRIP": Movies/DVD
"DVDSCREENER": Movies/Other
"HC HDRIP": Movies/HD
"HD-RIP": Movies/HD
"HD-TC": Movies/HD
"HD-TS": Movies/HD
"HDRip": Movies/HD
"HDRIP": Movies/HD
"HDTC-SCREENER": Movies/Other
"HDTV-SCREENER": Movies/Other
"HQ-TC": Movies
"MKV": Movies
"TeleCine": Movies
"TELECINE": Movies
"TS-HQ": Movies
"TS-Screener": Movies/Other
"V.O. Subtituladas": Movies
"VHS-Screener": Movies/Other
"TS-SCREENER": Movies/Other
"V.O. SUBTITULADAS": Movies
"VHS-SCREENER": Movies/Other
"Web DL": Movies/WEBDL
"WEB-RIP": Movies/WEBDL
"WEB-Screener": Movies/Other
"WEB-SCREENER": Movies/Other
"WEB-SCREENER HC": Movies/Other
"NOCAT": Movies/Other
modes:
search: [q]
@ -65,8 +66,12 @@
selector: div.nombre_big1 a
attribute: href
category:
text: NOCAT
category|noappend:
selector: div.nombre_big1 p b
optional: true
filters:
- name: toupper
download:
selector: div.nombre_big1 a
attribute: href

View File

@ -135,12 +135,8 @@
- name: re_replace
args: ["( torrent)$", ""]
category:
optional: true
selector: td:nth-child(1):contains("-")
filters:
- name: replace #7110 provide default for missing category
args: ["-", "78"]
category:
text: 78 #7110
category|noappend:
optional: true
selector: a[href^="/torrents.php?cat="]
attribute: href

View File

@ -948,11 +948,11 @@
fields:
category:
selector: a[href*="/category/"], a[href="#"]
text: 9 #7108
category|noappend:
selector: a[href*="/category/"]
attribute: href
filters:
- name: replace #7108 provide default for missing category
args: ["#", "/category/9/"]
- name: regexp
args: "/category/(\\d+)/"
title:

View File

@ -93,12 +93,12 @@
attribute: href
category:
text: Anime
category:
category|noappend:
optional: true
selector: td.tit span
date:
# 1d
# 2d
# 2d
# 1d 3h
# 3 dias
# 3h 14m

View File

@ -87,12 +87,8 @@
fields:
category:
optional: true
selector: td:nth-child(1):contains("-")
filters:
- name: replace #7113 provide default for missing category
args: ["-", "33"]
category:
text: 33 #7113
category|noappend:
optional: true
selector: a[href^="/search.php?cat="]
attribute: href