blutopia: upgrade for unit3d 5.3.0

This commit is contained in:
Garfield69
2021-06-01 00:34:59 +12:00
parent 816ba17902
commit e8f05ccf4a

View File

@@ -10,7 +10,7 @@ links:
caps: caps:
categorymappings: categorymappings:
- {id: 1, cat: Movies, desc: "Movies"} - {id: 1, cat: Movies, desc: "Movie"}
- {id: 2, cat: TV, desc: "TV"} - {id: 2, cat: TV, desc: "TV"}
- {id: 3, cat: Movies/Other, desc: "FANRES"} - {id: 3, cat: Movies/Other, desc: "FANRES"}
- {id: 5, cat: Movies/Other, desc: "Trailer"} - {id: 5, cat: Movies/Other, desc: "Trailer"}
@@ -68,28 +68,24 @@ login:
search: search:
paths: paths:
# https://blutopia.xyz/torrents/filter? - path: torrents
# 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
inputs: inputs:
$raw: "{{ range .Categories }}categories[]={{.}}&{{end}}" $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: "" description: ""
mediainfo: ""
keywords: "" keywords: ""
uploader: "" uploader: ""
imdb: "{{ .Query.IMDBIDShort }}" tmdbId: "{{ .Query.TMDBID }}"
tvdb: "{{ .Query.TVDBID }}" imdbId: "{{ .Query.IMDBIDShort }}"
tmdb: "{{ .Query.TMDBID }}" tvdbId: "{{ .Query.TVDBID }}"
mal: "" malId: ""
igdb: "" startYear: ""
start_year: "" endYear: ""
end_year: "" sortField: "{{ .Config.sort }}"
sorting: "{{ .Config.sort }}" sortDirection: "{{ .Config.type }}"
direction: "{{ .Config.type }}" perPage: 100
qty: 100 page: 1
page: 0
view: list
freeleech: "{{ if .Config.freeleech }}1{{ else }}{{ end }}" freeleech: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
rows: rows:
@@ -103,40 +99,29 @@ search:
- name: regexp - name: regexp
args: "/categories/(\\d+)" args: "/categories/(\\d+)"
title: title:
selector: a[href*="/torrents/"] selector: a.view-torrent
download: download:
selector: a[href*="/download/"] selector: a[href*="/download/"]
attribute: href attribute: href
details: details:
selector: a[href*="/torrents/"] selector: a.view-torrent
attribute: href attribute: href
poster: poster:
selector: div.torrent-poster img selector: div.torrent-poster img
attribute: src attribute: src
filters: filters:
- name: replace - name: replace
args: ["&w=52&h=80", "&w=180&h=270"] # for display on dashboard args: ["https://via.placeholder.com/90x135", ""]
- name: replace
args: ["https://images.weserv.nl/?url=https://via.placeholder.com/52x80&w=180&h=270", ""]
size: size:
selector: td:nth-last-child(4) selector: td:nth-last-child(5)
seeders: seeders:
selector: td:nth-last-child(3) selector: td:nth-last-child(4)
leechers: leechers:
selector: td:nth-last-child(2) selector: td:nth-last-child(3)
grabs: grabs:
selector: td:nth-last-child(1) selector: td:nth-last-child(2)
filters:
- name: regexp
args: (\d+)
imdb:
selector: a[href*="imdb.com/title/tt"]
attribute: href
tmdbid:
selector: a[href*="themoviedb.org/movie/"]
attribute: href
date: date:
selector: time selector: td:nth-last-child(1)
filters: filters:
# translations for Turkish|Estonian|Danish|Italian|Polish|Norwegian|Portuguese|Czech|Russian|Romanian|Spanish|French|German|Bulgarian|Dutch|Chinese|Japanese|Swedish # translations for Turkish|Estonian|Danish|Italian|Polish|Norwegian|Portuguese|Czech|Russian|Romanian|Spanish|French|German|Bulgarian|Dutch|Chinese|Japanese|Swedish
- name: re_replace - name: re_replace
@@ -190,7 +175,10 @@ search:
i[class*="fa-globe text-green"]: 2 # Global Double Upload i[class*="fa-globe text-green"]: 2 # Global Double Upload
i[class*="fa-certificate text-pink"]: 2 # Featured Torrent i[class*="fa-certificate text-pink"]: 2 # Featured Torrent
"*": 1 "*": 1
# global MR is 0.4 but torrents must be seeded for 7 days regardless of ratio
# minimumratio:
# text: 0.4
minimumseedtime: minimumseedtime:
# 7 days (as seconds = 7 x 24 x 60 x 60) # 7 day (as seconds = 7 x 24 x 60 x 60)
text: 604800 text: 604800
# UNIT3D 5.2.1b # UNIT3D 5.3.0b