mirror of
https://github.com/Jackett/Jackett
synced 2025-01-31 20:02:08 +00:00
torrentgalaxy: add config sort options
This commit is contained in:
parent
3d582fe851
commit
172f71de81
1 changed files with 27 additions and 9 deletions
|
@ -54,7 +54,23 @@
|
|||
tv-search: [q, season, ep]
|
||||
movie-search: [q]
|
||||
|
||||
settings: []
|
||||
settings:
|
||||
- name: sort
|
||||
type: select
|
||||
label: Sort requested from site
|
||||
default: "id"
|
||||
options:
|
||||
"id": "created"
|
||||
"seeders": "seeders"
|
||||
"size": "size"
|
||||
"name": "title"
|
||||
- name: type
|
||||
type: select
|
||||
label: Order requested from site
|
||||
default: "desc"
|
||||
options:
|
||||
"desc": "desc"
|
||||
"asc": "asc"
|
||||
|
||||
login:
|
||||
# https://torrentgalaxy.to/galaxyfence.php?f&dropoff=%2Ftorrents.php%3Fsearch%3DHarry%2BPotter
|
||||
|
@ -62,7 +78,7 @@
|
|||
method: form
|
||||
form: form[action="/galaxyfence.php"]
|
||||
inputs:
|
||||
dropoff: "/torrents.php"
|
||||
dropoff: /torrents.php
|
||||
captcha:
|
||||
type: image
|
||||
selector: img#captcha
|
||||
|
@ -76,13 +92,15 @@
|
|||
# https://torrentgalaxy.org/torrents.php?c41=1&search=mercedes+s02e04&lang=0&sort=id&order=desc
|
||||
path: torrents.php
|
||||
inputs:
|
||||
$raw: "{{range .Categories}}c{{.}}=1&{{end}}"
|
||||
search: "{{.Keywords}}"
|
||||
lang: "0"
|
||||
sort: "id"
|
||||
order: "desc"
|
||||
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
|
||||
search: "{{ .Keywords }}"
|
||||
lang: 0
|
||||
sort: "{{ .Config.sort }}"
|
||||
order: "{{ .Config.type }}"
|
||||
|
||||
rows:
|
||||
selector: div[class="tgxtablerow"]
|
||||
|
||||
fields:
|
||||
title:
|
||||
selector: div a[href^="/torrent/"]
|
||||
|
@ -119,6 +137,6 @@
|
|||
- name: dateparse
|
||||
args: "02/01/06 15:04"
|
||||
downloadvolumefactor:
|
||||
text: "0"
|
||||
text: 0
|
||||
uploadvolumefactor:
|
||||
text: "1"
|
||||
text: 1
|
||||
|
|
Loading…
Reference in a new issue