1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-26 17:58:49 +00:00

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

View file

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