dxdhd: updates for unti3d 1.9.2

plus add / amend categories
This commit is contained in:
Garfield69 2019-04-07 08:11:27 +12:00
parent c9fbc7268b
commit 593bbb37d3
1 changed files with 40 additions and 13 deletions

View File

@ -15,10 +15,11 @@
- {id: 3, cat: Audio, desc: "Music"} - {id: 3, cat: Audio, desc: "Music"}
- {id: 4, cat: TV/Anime, desc: "Anime"} - {id: 4, cat: TV/Anime, desc: "Anime"}
- {id: 5, cat: PC/0day, desc: "Apps"} - {id: 5, cat: PC/0day, desc: "Apps"}
- {id: 6, cat: Books, desc: "Books"} - {id: 6, cat: Books, desc: "eBooks"}
- {id: 7, cat: PC/Games, desc: "Games"} - {id: 7, cat: PC/Games, desc: "Games"}
- {id: 8, cat: TV/Sport, desc: "Sports"} - {id: 8, cat: TV/Sport, desc: "Sports"}
- {id: 9, cat: Other, desc: "Other"} - {id: 9, cat: Other, desc: "Others"}
- {id: 10, cat: XXX, desc: "XXX"}
modes: modes:
search: [q] search: [q]
@ -31,10 +32,19 @@
inputs: inputs:
username: "{{ .Config.username }}" username: "{{ .Config.username }}"
password: "{{ .Config.password }}" password: "{{ .Config.password }}"
remember: 1
error: error:
- selector: table.main:contains("Login Failed!") - selector: div.has-error
test: test:
path: torrents path: torrents
selector: a[href$="/logout"]
ratio:
path: torrents
selector: li:has(i.fa-sync-alt)
filters:
- name: regexp
args: "Ratio : (\\d+)"
search: search:
paths: paths:
@ -42,13 +52,14 @@
inputs: inputs:
$raw: "{{range .Categories}}categories[]={{.}}&{{end}}" $raw: "{{range .Categories}}categories[]={{.}}&{{end}}"
search: "{{if .Query.IMDBID}}{{else}}{{ .Keywords }}{{end}}" search: "{{if .Query.IMDBID}}{{else}}{{ .Keywords }}{{end}}"
description: ""
uploader: "" uploader: ""
imdb: "{{ .Query.IMDBIDShort }}" imdb: "{{ .Query.IMDBIDShort }}"
tvdb: "" tvdb: ""
tmdb: "" tmdb: ""
mal: "" mal: ""
sorting: created_at sort: "created_at"
direction: desc direction: "desc"
qty: 100 qty: 100
rows: rows:
selector: table > tbody > tr selector: table > tbody > tr
@ -67,17 +78,28 @@
details: details:
selector: a.view-torrent selector: a.view-torrent
attribute: href attribute: href
banner:
optional: true
selector: div.torrent-poster img
attribute: src
filters:
- name: replace
args: ["https://via.placeholder.com/600x900", ""]
size: size:
selector: td:nth-child(5) selector: td:nth-child(5)
seeders: seeders:
selector: td:nth-child(7)
leechers:
selector: td:nth-child(8)
grabs:
selector: td:nth-child(6) selector: td:nth-child(6)
leechers:
selector: td:nth-child(7)
grabs:
selector: td:nth-child(8)
filters: filters:
- name: regexp - name: regexp
args: ([\d\.]+) args: ([\d\.]+)
imdb:
optional: true
selector: a[href*="www.imdb.com/title/tt"]
attribute: href
date: date:
selector: time selector: time
filters: filters:
@ -106,12 +128,17 @@
args: [" (ay|kuud|måneder|mesi|miesiące|meses|měsíce|месяца|месяцев|luni|meses|mois|Monaten|месеца|maanden)", "months"] args: [" (ay|kuud|måneder|mesi|miesiące|meses|měsíce|месяца|месяцев|luni|meses|mois|Monaten|месеца|maanden)", "months"]
downloadvolumefactor: downloadvolumefactor:
case: case:
"i[data-original-title=\"100% Free\"]": "0" # Single Torrent Freeleech "i[data-original-title=\"Personal Freeleech\"]": "0" # 24 Hour FreeLeech From BON Store
"i[data-original-title=\"Special Freeleech\"]": "0" # Special FreeLeech For Certain User Groups
"i[data-original-title=\"Freeleech Token\"]": "0" # Freeleech From Token
"i[data-original-title=\"Global FreeLeech\"]": "0" # Global Freeleech "i[data-original-title=\"Global FreeLeech\"]": "0" # Global Freeleech
"i[data-original-title=\"Freeleech\"]": "0" # Freeleech
"i[data-original-title=\"Featured\"]": "0" # Featured Torrent
"*": "1" "*": "1"
uploadvolumefactor: uploadvolumefactor:
case: case:
"i[data-original-title=\"Double upload\"]": "2" # Single Torrent Double Upload "i[data-original-title=\"Double Upload\"]": "2" # Single Torrent Double Upload
"i[data-original-title=\"Double Upload\"]": "2" # Global Double Upload "i[data-original-title=\"Global Double Upload\"]": "2" # Global Double Upload
"i[data-original-title=\"Featured\"]": "2" # Featured Torrent
"*": "1" "*": "1"
# UNIT3D # UNIT3D 1.9.2