icetorrent: new engine. resolves #8071

new categories
new login
new domain
enable config sort options
This commit is contained in:
Garfield69 2020-04-07 16:32:54 +12:00
parent 3a513da0ea
commit fecd91d19c
1 changed files with 114 additions and 107 deletions

View File

@ -6,48 +6,55 @@
type: private type: private
encoding: UTF-8 encoding: UTF-8
links: links:
- https://icetorrent.org/
legacylinks:
- https://www.icetorrent.org/ - https://www.icetorrent.org/
caps: caps:
categorymappings: categorymappings:
- {id: 1, cat: PC/0day , desc: "Appz"} - {id: 38, cat: Movies, desc: "Movie Packs"}
- {id: 85, cat: Audio/Audiobook, desc: "AudioBooks"} - {id: 10, cat: Movies/SD, desc: "Movies: SD"}
- {id: 68, cat: Books, desc: "Carti/Reviste"} - {id: 35, cat: Movies/SD, desc: "Movies: SD Ro"}
- {id: 23, cat: Books, desc: "Cartoons"} - {id: 8, cat: Movies/HD, desc: "Movies: HD"}
- {id: 73, cat: Audio/Video, desc: "Concert/Videoclip"} - {id: 29, cat: Movies/HD, desc: "Movies: HD Ro"}
- {id: 75, cat: Other, desc: "Diverse"} - {id: 7, cat: Movies/DVD, desc: "Movies: DVD"}
- {id: 69, cat: TV/Documentary, desc: "Docs RO"} - {id: 2, cat: Movies/DVD, desc: "Movies: DVD Ro"}
- {id: 51, cat: TV/Documentary, desc: "Docs"} - {id: 17, cat: Movies/BluRay, desc: "Movies: BluRay"}
- {id: 43, cat: Books, desc: "eBooks"} - {id: 24, cat: Movies/BluRay, desc: "Movies: BluRay Ro"}
- {id: 63, cat: Movies/DVD, desc: "Filme DVD"} - {id: 59, cat: Movies, desc: "Movies: Ro"}
- {id: 65, cat: Movies/HD, desc: "Filme HD"} - {id: 57, cat: Movies/UHD, desc: "Movies: 4K (2160p) Ro"}
- {id: 64, cat: Movies/SD, desc: "Filme SD"} - {id: 61, cat: Movies/UHD, desc: "Movies: 4K (2160p)"}
- {id: 40, cat: Console, desc: "Games/Console"} - {id: 41, cat: TV, desc: "TV Packs"}
- {id: 26, cat: PC/Games, desc: "Games/PC"} - {id: 66, cat: TV, desc: "TV Packs Ro"}
- {id: 38, cat: PC/Phone-Other, desc: "Mobile"} - {id: 45, cat: TV, desc: "TV Episodes"}
- {id: 59, cat: Movies/3D, desc: "Movies/3D"} - {id: 46, cat: TV, desc: "TV Episodes Ro"}
- {id: 92, cat: Movies/UHD, desc: "Movies/4K-UHD"} - {id: 43, cat: TV/HD, desc: "TV Episodes HD"}
- {id: 32, cat: Movies/BluRay, desc: "Movies/Blu-Ray"} - {id: 44, cat: TV/HD, desc: "TV Episodes HD Ro"}
- {id: 28, cat: Movies/DVD, desc: "Movies/DVD"} - {id: 60, cat: TV, desc: "TV Ro"}
- {id: 42, cat: Movies/HD, desc: "Movies/HD-x264"} - {id: 11, cat: PC/Games, desc: "Games: PC-ISO"}
- {id: 91, cat: Movies/HD, desc: "Movies/HEVC-x265"} - {id: 52, cat: Console, desc: "Games: Console"}
- {id: 79, cat: Movies/HD, desc: "Movies/microHD"} - {id: 1, cat: PC/0day, desc: "Applications"}
- {id: 29, cat: Movies/SD, desc: "Movies/SD"} - {id: 14, cat: PC, desc: "Applications: Linux"}
- {id: 72, cat: Audio/Lossless, desc: "Music/FLAC"} - {id: 37, cat: PC/Mac, desc: "Applications: Mac"}
- {id: 6, cat: Audio/MP3, desc: "Music/MP3"} - {id: 19, cat: PC/Phone-Other, desc: "Applications: Mobile"}
- {id: 37, cat: Audio/Video, desc: "Music/Video"} - {id: 62, cat: TV, desc: "TV Cartoons"}
- {id: 70, cat: Audio/Lossless, desc: "Muzica FLAC"} - {id: 3, cat: TV/Anime, desc: "TV Anime / Hentai"}
- {id: 71, cat: Audio/MP3, desc: "Muzica MP3"} - {id: 6, cat: Books/Ebook, desc: "E-books"}
- {id: 74, cat: Other, desc: "Other"} - {id: 5, cat: Audio, desc: "Music"}
- {id: 41, cat: Other, desc: "Pictures"} - {id: 64, cat: Audio/Video, desc: "Music Video"}
- {id: 67, cat: TV, desc: "Seriale TV"} - {id: 18, cat: Other, desc: "Images"}
- {id: 48, cat: TV/Sport, desc: "Sports"} - {id: 22, cat: TV/Sport, desc: "TV Sports"}
- {id: 87, cat: Other, desc: "TUTS"} - {id: 58, cat: TV/Sport, desc: "TV Sports Ro"}
- {id: 33, cat: TV/SD, desc: "TV Episodes"} - {id: 9, cat: TV/Documentary, desc: "TV Documentary"}
- {id: 34, cat: TV/HD, desc: "TVHD Episodes"} - {id: 63, cat: TV/Documentary, desc: "TV Documentary Ro"}
- {id: 9, cat: XXX, desc: "XXX Video"} - {id: 65, cat: Other, desc: "Tutorial"}
- {id: 11, cat: XXX, desc: "XXX Magazine"} - {id: 67, cat: Other, desc: "Miscellaneous"}
- {id: 58, cat: XXX, desc: "XXX Pictures"} - {id: 15, cat: XXX, desc: "XXX Movies"}
- {id: 47, cat: XXX, desc: "XXX DVD"}
- {id: 48, cat: XXX, desc: "XXX HD"}
- {id: 49, cat: XXX, desc: "XXX Images"}
- {id: 50, cat: XXX, desc: "XXX Packs"}
- {id: 51, cat: XXX, desc: "XXX SD"}
modes: modes:
search: [q, imdbid] search: [q, imdbid]
@ -61,30 +68,33 @@
- name: password - name: password
type: password type: password
label: Password label: Password
# causes server 500 errors - name: sort
# - name: sort type: select
# type: select label: Sort requested from site
# label: Sort requested from site default: "refreshAt"
# default: "date" options:
# options: "refreshAt": "created"
# "date": "created" "seeders": "seeders"
# "seeders": "seeders" "size": "size"
# "size": "size" - name: type
# - name: type type: select
# type: select label: Order requested from site
# label: Order requested from site default: "desc"
# default: "DESC" options:
# options: "desc": "desc"
# "DESC": "desc" "asc": "asc"
# "ASC": "asc"
- name: browseadult - name: browseadult
type: checkbox type: checkbox
label: Use the BrowseAdult search engine label: Use the Adult search engine
default: false default: false
- name: info_browseadult - name: info_browseadult
type: info type: info
label: "About the BrowseAdult search engine" label: "About the Adult search engine"
default: "The regular <b>Browse</b> search engine does not return <i>Adult category</i> results.</br>The <b>BrowseAdult</b> search engine can return <i>all category</i> results, but without the <i>imdb tags</i>, and also does not support <i>imdbid</i> searches." default: "The <b>Adult</b> search engine only returns <i>Adult category</i> results.</br>And Vice Versa."
- name: info_Search
type: info
label: "About Search results"
default: "This indexer supports only the <b>English</b> language. Choosing <i>non-English languages</i> will cause incorrect dates to be returned.</br>For best results edit your profile and set your <b>Torrents per page</b> to <b>100</b>. The Default is <i>50</i>."
login: login:
path: login path: login
@ -94,85 +104,82 @@
username: "{{ .Config.username }}" username: "{{ .Config.username }}"
password: "{{ .Config.password }}" password: "{{ .Config.password }}"
_remember_me: on _remember_me: on
selectorinputs:
_csrf_token:
selector: input[name="_csrf_token"]
attribute: value
error: error:
- selector: span:contains("Error")
- selector: div.alert:contains("failed") - selector: div.alert:contains("failed")
test: test:
path: / path: /
selector: a[href^="/logout?_csrf_token="] selector: a[href*="/logout?_csrf_token="]
ratio: ratio:
text: -1 text: -1
search: search:
paths: paths:
- path: "{{ if .Config.browseadult }}browseadult.php{{else}}browse.php{{end}}" # https://icetorrent.org/browse?search=&submit=&sort=torrent.size&direction=desc&page=1
- path: "{{ if .Config.browseadult }}adult{{else}}browse{{end}}"
inputs: inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}" $raw: "{{ range .Categories }}categories[]={{.}}&{{end}}"
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}" search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}"
# 0 onlyalive 3 rosubbed 4 requested sort: "torrent.{{ .Config.sort }}"
incldead: 1 direction: "{{ .Config.type }}"
# name, descrname, genre, imdb
search_by: "{{ if .Query.IMDBID }}imdb{{else}}name{{end}}"
# by: "{{ .Config.sort }}"
# ord: "{{ .Config.type }}"
rows: rows:
selector: table.table-striped > tbody > tr:has(a[href^="/details.php?id="]) selector: div.kt-portlet--mobile > div.kt-portlet__body--fit > div.mr-0
fields: fields:
category: category:
selector: a[href^="?cat="] selector: a[href^="/browse?categories"]
attribute: href attribute: href
filters: filters:
- name: querystring - name: regexp
args: cat args: (\d+)$
title: title:
selector: a[href^="/details.php?id="] selector: a[href^="/browse/"]
details: details:
selector: a[href^="/details.php?id="] selector: a[href^="/browse/"]
attribute: href
banner:
attribute: rel
imdb:
selector: a[href*="www.imdb.com"]
optional: true
attribute: href attribute: href
download: download:
selector: a[href^="/download.php"] selector: a[href^="/torrents/"]
attribute: href attribute: href
files: imdb:
selector: a[href$="#filelist"] optional: true
selector: a[href*="www.imdb.com/title/tt"]
attribute: href
date:
selector: div[data-toggle="kt-tooltip"]
attribute: title
filters:
- name: dateparse
args: "Jan 2, 2006, 3:04:05 PM"
size:
selector: div[data-toggle="kt-tooltip"] + div + div
grabs:
selector: div[data-toggle="kt-tooltip"] + div
filters: filters:
- name: regexp - name: regexp
args: (\d+) args: (\d+)
size: # some users's have an extra column after the size/files and before the seeders column (Issue #2243)
selector: td:has(a[href$="#filelist"])
remove: a
date:
selector: td > small:has(i.fa-clock), td > span.small:has(i.fa-clock)
filters:
- name: replace
args: ["\xA0", " "]
- name: replace
args: ["st ", " "]
- name: replace
args: ["nd ", " "]
- name: replace
args: ["rd ", " "]
- name: replace
args: ["th ", " "]
- name: regexp
args: "(.+?) by"
- name: append
args: " +02:00"
- name: dateparse
args: "2 Jan 2006 15:04:05 -07:00"
seeders: seeders:
selector: td:nth-last-child(2) selector: div[data-toggle="kt-tooltip"] + div + div + div > div div:nth-child(1)
filters:
- name: regexp
args: (\d+)
leechers: leechers:
selector: td:nth-last-child(1) selector: div[data-toggle="kt-tooltip"] + div + div + div > div div:nth-child(2)
filters:
- name: regexp
args: (\d+)
downloadvolumefactor: downloadvolumefactor:
text: 0 case:
"span.kt-badge--success:contains(\"free\")": 0
"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 # engine n/a