torrenthr: update to current standards

add config sort
MR + MST
use index page for test to speed up login check
This commit is contained in:
Garfield69
2024-12-22 16:04:52 +13:00
parent 10d2dfff12
commit 8425f43e8f
2 changed files with 35 additions and 5 deletions

View File

@@ -597,7 +597,7 @@ A third-party Golang SDK for Jackett is available from [webtor-io/go-jackett](ht
* TorrentDay (TD)
* TorrentDD
* Torrenteros (TTR)
* TorrentHR [![(invite needed)][inviteneeded]](#)
* TorrentHR
* Torrenting (TT)
* Torrentland
* TorrentLeech (TL)

View File

@@ -43,6 +43,30 @@ caps:
music-search: [q]
book-search: [q]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: sort
type: select
label: Sort requested from site
default: 4
options:
4: created
7: seeders
5: size
1: title
- name: type
type: select
label: Order requested from site
default: desc
options:
desc: desc
asc: asc
login:
path: takelogin.php
method: post
@@ -53,7 +77,7 @@ login:
error:
- selector: div.glavni:has(div.glavni_naslov:contains("Greška"))
test:
path: browse.php
path: index.php
selector: a[href*="logout.php"]
search:
@@ -64,16 +88,17 @@ search:
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
# 0 name, 1 descr, 2 both
blah: "{{ if .Query.IMDBID }}2{{ else }}0{{ end }}"
# 0 active, 1 incldead, 2 onlydead
incldead: 1
sort: 4
type: desc
sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}"
rows:
selector: div.glavni_txt table > tbody > tr[id^="record-"]
fields:
category:
selector: td.kategorije > a[href^="browse.php?cat="]
selector: a[href^="browse.php?cat="]
attribute: href
filters:
- name: querystring
@@ -130,4 +155,9 @@ search:
description:
selector: td:nth-child(2)
remove: a, br, small
minimumratio:
text: 1.0
minimumseedtime:
# 3 days (as seconds = 3 x 24 x 60 x 60)
text: 259200
# engine tbd