btdigg: add config sort option

This commit is contained in:
Garfield69 2019-12-14 09:33:12 +13:00
parent 88092323f1
commit 4fb6a4f28d
1 changed files with 14 additions and 4 deletions

View File

@ -21,6 +21,13 @@
- name: info - name: info
type: info type: info
default: BTDigg does not use categories. In your software Indexer settings, set the category to 100001. default: BTDigg does not use categories. In your software Indexer settings, set the category to 100001.
- name: sort
type: select
label: Sort requested from site
default: "2"
options:
"2": "created"
"3": "size"
search: search:
# https://btdig.com/search?q=test&order=2 # https://btdig.com/search?q=test&order=2
@ -28,12 +35,15 @@
paths: paths:
- path: search - path: search
inputs: inputs:
q: "{{if .Keywords }}{{.Keywords}}{{else}}test{{end}}" q: "{{ if .Keywords }}{{ .Keywords }}{{else}}test{{end}}"
order: 2 # 0 relevance 2 age 3 size 4 files
order: "{{ .Config.sort }}"
rows: rows:
selector: div.one_result selector: div.one_result
filters: filters:
- name: andmatch - name: andmatch
fields: fields:
title: title:
selector: div.torrent_name a selector: div.torrent_name a
@ -62,6 +72,6 @@
leechers: leechers:
text: 1 text: 1
downloadvolumefactor: downloadvolumefactor:
text: "0" text: 0
uploadvolumefactor: uploadvolumefactor:
text: "1" text: 1