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 - name: replace
args: ["\u000f", ""] # get rid of unwanted character args: ["\u000f", ""] # get rid of unwanted character
category: category:
text: 40
category|noappend:
optional: true optional: true
selector: td[class^="coll-1"] a[href^="/sub/"] selector: td[class^="coll-1"] a[href^="/sub/"]
attribute: href attribute: href

View File

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

View File

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

View File

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

View File

@@ -93,7 +93,7 @@
attribute: href attribute: href
category: category:
text: Anime text: Anime
category: category|noappend:
optional: true optional: true
selector: td.tit span selector: td.tit span
date: date:

View File

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