torrentland: update to unit3d 5.3.0. resolves #12309

This commit is contained in:
ilike2burnthing 2021-09-15 20:42:00 +01:00 committed by GitHub
parent 217254631b
commit 5b3c047bd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 29 additions and 38 deletions

View File

@ -76,29 +76,30 @@ login:
search:
paths:
# https://torrentland.li/torrents/filter?
# search=&description=&keywords=&uploader=&imdb=&tvdb=&view=list&tmdb=&mal=&igdb=
# &start_year=&end_year=&categories%5B%5D=3&sorting=seeders&direction=asc&page=0&qty=25
- path: torrents/filter
# https://torrentland.li/torrents?
# name=&description=&mediainfo=&uploader=&keywords=&tmdbId=&imdbId=&tvdbId=&malId=
# &startYear=&endYear=&playlistId=&collectionId=&categories%5B0%5D=1&perPage=100
- path: torrents
inputs:
$raw: "{{ range .Categories }}categories[]={{.}}&{{end}}"
search: "{{ if .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}" # for dashboard imdbid search
name: "{{ if .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}" # for dashboard imdbid search
description: ""
mediainfo: ""
keywords: ""
uploader: ""
imdb: "{{ .Query.IMDBIDShort }}"
tvdb: "{{ .Query.TVDBID }}"
tmdb: "{{ .Query.TMDBID }}"
mal: ""
igdb: ""
start_year: ""
end_year: ""
sorting: "{{ .Config.sort }}"
direction: "{{ .Config.type }}"
qty: 100
page: 0
view: list
freeleech: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
tmdbId: "{{ .Query.TMDBID }}"
imdbId: "{{ .Query.IMDBIDShort }}"
tvdbId: "{{ .Query.TVDBID }}"
malId: ""
startYear: ""
endYear: ""
playlistId: ""
collectionId: ""
sortField: "{{ .Config.sort }}"
sortDirection: "{{ .Config.type }}"
perPage: 100
page: 1
free: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
keywordsfilters:
- name: re_replace
args: ["(?i)\\bS(\\d+)", "T$1"]
@ -122,7 +123,7 @@ search:
"span:contains(\"+18\")": 9
"span:contains(\"Otros\")": 10
title:
selector: a[href*="/torrents/"]:contains("VOSE")
selector: a.view-torrent:contains("VOSE")
optional: true
filters:
- name: re_replace
@ -134,7 +135,7 @@ search:
- name: append
args: " ENGLiSH"
title:
selector: a[href*="/torrents/"]:not(:contains("VOSE"))
selector: a.view-torrent:not(:contains("VOSE"))
optional: true
filters:
- name: re_replace
@ -149,34 +150,24 @@ search:
selector: a[href*="/download/"]
attribute: href
details:
selector: a[href*="/torrents/"]
selector: a.view-torrent
attribute: href
poster:
selector: div.torrent-poster img
attribute: src
filters:
- name: replace
args: ["&w=52&h=80", "&w=180&h=270"] # for display on dashboard
- name: replace
args: ["https://images.weserv.nl/?url=https://via.placeholder.com/52x80&w=180&h=270", ""]
- name: replace
args: ["https://images.weserv.nl/?url=https://via.placeholder.com/600x900&w=180&h=270", ""]
args: ["https://via.placeholder.com/90x135", ""]
size:
selector: td:nth-last-child(4)
selector: td:nth-last-child(5)
seeders:
selector: td:nth-last-child(3)
selector: td:nth-last-child(4)
leechers:
selector: td:nth-last-child(2)
selector: td:nth-last-child(3)
grabs:
selector: td:nth-last-child(1)
imdb:
selector: a[href*="imdb.com/title/tt"]
attribute: href
tmdbid:
selector: a[href*="themoviedb.org/movie/"]
attribute: href
selector: td:nth-last-child(2)
date:
selector: time
selector: td:nth-last-child(1)
filters:
# translations for Turkish|Estonian|Danish|Italian|Polish|Norwegian|Portuguese|Czech|Russian|Romanian|Spanish|French|German|Bulgarian|Dutch|Chinese|Japanese|Swedish
- name: re_replace
@ -235,4 +226,4 @@ search:
minimumseedtime:
# 4 days (as seconds = 4 x 24 x 60 x 60)
text: 345600
# UNIT3D 5.1.0 custom
# UNIT3D 5.3.0 custom