scenefz: update for new engine. resolves #7625

This commit is contained in:
Garfield69 2020-03-12 15:25:00 +13:00
parent ed763fe7e1
commit 733494a8a3
1 changed files with 114 additions and 69 deletions

View File

@ -13,107 +13,152 @@
caps: caps:
categorymappings: categorymappings:
- {id: 1, cat: TV/Anime, desc: "Anime / Hentai"} - {id: 62, cat: TV, desc: "Cartoons"}
- {id: 49, cat: Other, desc: "Diverse"} - {id: 3, cat: TV/Anime, desc: "Anime/Hentai"}
- {id: 43, cat: Books, desc: "Documents"} - {id: 1, cat: PC/0day, desc: "Appz"}
- {id: 35, cat: Console, desc: "Games: Console"} - {id: 9, cat: TV/Documentary, desc: "Documentary"}
- {id: 30, cat: PC/Games, desc: "Games: PC-ISO"} - {id: 63, cat: TV/Documentary, desc: "Documentary-RO"}
- {id: 13, cat: TV/HD, desc: "HDTV Episodes"} - {id: 6, cat: Books, desc: "eBooks"}
- {id: 14, cat: TV/HD, desc: "HDTV Episodes-Ro"} - {id: 52, cat: Console, desc: "Games-Console"}
- {id: 44, cat: Other, desc: "Images"} - {id: 11, cat: PC/Games, desc: "Games-PC"}
- {id: 45, cat: PC/0day, desc: "Linux"} - {id: 18, cat: Other, desc: "Images"}
- {id: 15, cat: PC/Phone-Other, desc: "Mobile"} - {id: 65, cat: Other, desc: "Tutorial"}
- {id: 61, cat: Movies/3D, desc: "Movies: 3D"} - {id: 14, cat: PC, desc: "Linux"}
- {id: 62, cat: Movies/3D, desc: "Movies: 3D Ro"} - {id: 37, cat: PC/Mac, desc: "Mac"}
- {id: 67, cat: Movies/UHD, desc: "Movies: 4K-RO(2160p)"} - {id: 19, cat: PC/Phone-Other, desc: "Mobile"}
- {id: 65, cat: Movies/UHD, desc: "Movies: 4K(2160p)"} - {id: 17, cat: Movies/BluRay, desc: "Movies-BluRay"}
- {id: 5, cat: Movies/BluRay, desc: "Movies: BluRay"} - {id: 24, cat: Movies/BluRay, desc: "Movies-BluRayRO"}
- {id: 6, cat: Movies/BluRay, desc: "Movies: BluRay-Ro"} - {id: 7, cat: Movies/DVD, desc: "Movies-DVD"}
- {id: 9, cat: Movies/DVD, desc: "Movies: DVD"} - {id: 2, cat: Movies/DVD, desc: "Movies-DVD-RO"}
- {id: 10, cat: Movies/DVD, desc: "Movies: DVD-Ro"} - {id: 8, cat: Movies/HD, desc: "Movies-HD"}
- {id: 11, cat: Movies/HD, desc: "Movies: HD"} - {id: 29, cat: Movies/HD, desc: "Movies-HD-RO"}
- {id: 12, cat: Movies/HD, desc: "Movies: HD-Ro"} - {id: 59, cat: Movies/Foreign, desc: "Movies-RO"}
- {id: 24, cat: Movies/SD, desc: "Movies: SD"} - {id: 57, cat: Movies/UHD, desc: "Movies-UHD-RO"}
- {id: 25, cat: Movies/SD, desc: "Movies: SD-Ro"} - {id: 61, cat: Movies/UHD, desc: "Movies-UHD"}
- {id: 27, cat: XXX, desc: "Movies: XXX"} - {id: 38, cat: Movies, desc: "Movies-Packs"}
- {id: 28, cat: Audio/Other, desc: "Music"} - {id: 10, cat: Movies/SD, desc: "Movies-SD"}
- {id: 64, cat: Audio/Lossless, desc: "Music FLAC"} - {id: 35, cat: Movies/SD, desc: "Movies-SD-RO"}
- {id: 29, cat: Audio/Video, desc: "Music Video"} - {id: 5, cat: Audio, desc: "Music"}
- {id: 26, cat: PC/0day, desc: "Software"} - {id: 64, cat: Audio/Video, desc: "Music Videos"}
- {id: 22, cat: TV/Sport, desc: "Sports"} - {id: 22, cat: TV/Sport, desc: "Sport"}
- {id: 20, cat: TV/SD, desc: "TV Episodes"} - {id: 58, cat: TV/Sport, desc: "Sports-RO"}
- {id: 21, cat: TV/SD, desc: "TV Episodes-Ro"} - {id: 43, cat: TV/HD, desc: "TV-HD"}
- {id: 44, cat: TV/HD, desc: "TV-HD-RO"}
- {id: 41, cat: TV, desc: "TV-Packs"}
- {id: 45, cat: TV/SD, desc: "TV-SD"}
- {id: 46, cat: TV/SD, desc: "TV-SD-RO"}
- {id: 60, cat: TV/FOREIGN, desc: "TV-RO"}
- {id: 66, cat: TV/FOREIGN, desc: "TV-Packs-RO"}
- {id: 15, cat: XXX, desc: "XXX"}
- {id: 47, cat: XXX, desc: "XXX-DVD"}
- {id: 48, cat: XXX, desc: "XXX-HD"}
- {id: 49, cat: XXX/Imageset, desc: "XXX-IMGSet"}
- {id: 50, cat: XXX, desc: "XXX-Packs"}
- {id: 51, cat: XXX, desc: "XXX-SD"}
modes: modes:
search: [q] search: [q, imdbid]
tv-search: [q, season, ep, imdbid]
movie-search: [q, imdbid]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: sort
type: select
label: Sort requested from site
default: "torrent.refreshAt"
options:
"torrent.refreshAt": "created"
"torrent.seeders": "seeders"
"torrent.size": "size"
- name: type
type: select
label: Order requested from site
default: "desc"
options:
"desc": "desc"
"asc": "asc"
login: login:
path: login path: login
method: form method: form
form: form form: form:has(input[name="_remember_me"])
inputs: inputs:
"username": "{{ .Config.username }}" username: "{{ .Config.username }}"
"password": "{{ .Config.password }}" password: "{{ .Config.password }}"
_remember_me: on
error: error:
- selector: div.alert-danger - selector: td.embedded:has(center > h2:contains(failed))
- selector: span:contains("Error")
test: test:
path: torrents path: browse
search: search:
paths: paths:
- path: torrents - path: browse
inputs: inputs:
q: "{{ .Keywords }}" $raw: "{{ range .Categories }}categories[]={{.}}&{{end}}"
searchin: 0 search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}"
cat: 0 sort: "{{ .Config.sort }}"
dead: 1 direction: "{{ .Config.type }}"
rows: rows:
selector: div.table-responsive > table > tbody > tr:has(a[href^="/torrents?"]) selector: div.kt-portlet--mobile > div.kt-portlet__body--fit > div.mr-0
fields: fields:
category:
selector: a[href^="/browse?categories"]
attribute: href
filters:
- name: regexp
args: (\d+)$
title: title:
selector: a[href^="/torrents/"] selector: a[href^="/browse/"]
details: details:
selector: a[href^="/torrents/"] selector: a[href^="/browse/"]
attribute: href attribute: href
download: download:
selector: a[href$=".torrent"] selector: a[href^="/torrents/"]
attribute: href attribute: href
category: imdb:
selector: a[href^="/torrents?"]
attribute: href
filters:
- name: querystring
args: cat
banner:
selector: a[href^="/torrents/"][title]
optional: true optional: true
attribute: title selector: a[href*="www.imdb.com/title/tt"]
filters: attribute: href
- name: regexp
args: src='(.+?)'
date: date:
selector: span.text-muted[data-toggle="tooltip"][title] selector: div[data-toggle="kt-tooltip"]
attribute: title attribute: title
filters: filters:
- name: append
args: " +02:00"
- name: dateparse - name: dateparse
args: "02.01.2006 15:04:05 -07:00" args: "Jan 2, 2006, 03:04:05 PM"
size: size:
selector: td:nth-child(5) selector: div[data-toggle="kt-tooltip"] + div + div
grabs: grabs:
selector: td:nth-child(6) selector: div[data-toggle="kt-tooltip"] + div
filters: filters:
- name: regexp - name: regexp
args: ([\d,]+) args: (\d+)
seeders: seeders:
selector: td:nth-child(7) selector: div[data-toggle="kt-tooltip"] + div + div + div > div div:nth-child(1)
filters:
- name: regexp
args: (\d+)
leechers: leechers:
selector: td:nth-child(8) selector: div[data-toggle="kt-tooltip"] + div + div + div > div div:nth-child(2)
filters:
- name: regexp
args: (\d+)
downloadvolumefactor: downloadvolumefactor:
case: case:
"div.badge-success:contains(\"FREE\")": "0" "span.kt-badge--success:contains(\"free\")": 0
"*": "1" "span.kt-badge--dark:contains(\"half\")": 0.5
"*": 1
uploadvolumefactor: uploadvolumefactor:
text: "1" case:
"span.kt-badge--info:contains(\"double\")": 2
"*": 1
# engine n/a