rutor: add config sort option

This commit is contained in:
Garfield69
2019-12-20 14:03:50 +13:00
parent e1897f05b2
commit 874ac222c5

View File

@@ -15,32 +15,43 @@
# albeit you can select a single category in its search options # albeit you can select a single category in its search options
# so I've opted not to support categories # so I've opted not to support categories
categorymappings: categorymappings:
- {id: 4, cat: TV, desc: "TV Shows"} - {id: 1, cat: Movies, desc: "Movies"}
- {id: 2, cat: TV, desc: "TV"}
- {id: 3, cat: Other, desc: "Other"}
modes: modes:
search: [q] search: [q]
settings: settings:
- name: method
type: select
label: Search Method
default: "0"
options:
"0" : "Full Phrase"
"1" : "All Words"
"2" : "Any Words"
- name: info - name: info
type: info type: info
label: A note about RuTor label: A note about RuTor
default: RuTor does not display categories in its search results page. This definition is probably only suitable for Jackett Dashboard Manual searches. default: RuTor does not display categories in its search results page. This definition is probably only suitable for Jackett Dashboard Manual searches.
- name: sort
type: select
label: Sort requested from site (Applies only to Search with Keywords)
default: "0"
options:
"0": "created desc"
"1": "created asc"
"2": "seeders desc"
"3": "seeders asc"
"6": "size desc"
"7": "size asc"
"8": "title desc"
"9": "title asc"
search: search:
paths: paths:
# http://rutor.info/search/0/0/000/0/gotham%2004x01 # http://rutor.info/search/0/0/100/0/gotham%2004x01
- path: "{{ if .Keywords }}search/0/0/{{ .Config.method }}00/0/{{ .Keywords }}/{{else}}top/{{end}}" - path: "{{ if .Keywords }}search/0/0/100/{{ .Config.sort }}/{{ .Keywords }}/{{else}}top/{{end}}"
rows: rows:
selector: tr:has(td:has(a.downgif)) selector: tr:has(td:has(a.downgif))
fields: fields:
category:
text: 3
title: title:
selector: td:nth-of-type(2) a[href^="/torrent/"] selector: td:nth-of-type(2) a[href^="/torrent/"]
filters: filters:
@@ -115,6 +126,6 @@
leechers: leechers:
selector: td span.red selector: td span.red
downloadvolumefactor: downloadvolumefactor:
text: "0" text: 0
uploadvolumefactor: uploadvolumefactor:
text: "1" text: 1