btdigg: optional cat config support for torznab app compatibility

This commit is contained in:
Garfield69
2020-10-21 20:12:56 +13:00
parent 28341540c4
commit 26d5f8a4aa

View File

@@ -10,7 +10,9 @@ links:
caps: caps:
categories: categories:
1: Other 1: TV
2: Movies
3: Other
modes: modes:
search: [q] search: [q]
@@ -18,17 +20,22 @@ caps:
movie-search: [q] movie-search: [q]
settings: settings:
- name: info - name: category-id
type: info type: select
default: BTDigg does not use categories. In your software Indexer settings, set the category to 7000. label: The BTDigg web site does not provide categories. Select the category you want Jackett to set on all results returned.
default: 3
options:
1: TV
2: Movies
3: Other
- name: sort - name: sort
type: select type: select
label: Sort requested from site label: Sort requested from site
default: "0" default: 0
options: options:
"0": "relevance" 0: relevance
"2": "created" 2: created
"3": "size" 3: size
search: search:
# https://btdig.com/search?q=test&order=2 # https://btdig.com/search?q=test&order=2
@@ -36,7 +43,7 @@ search:
paths: paths:
- path: search - path: search
inputs: inputs:
q: "{{ if .Keywords }}{{ .Keywords }}{{else}}test{{end}}" q: "{{ if .Keywords }}{{ .Keywords }}{{ else }}test{{ end }}"
# 0 relevance 2 age 3 size 4 files # 0 relevance 2 age 3 size 4 files
order: "{{ .Config.sort }}" order: "{{ .Config.sort }}"
@@ -46,10 +53,10 @@ search:
- name: andmatch - name: andmatch
fields: fields:
category:
text: "{{ .Config.category-id }}"
title: title:
selector: div.torrent_name a selector: div.torrent_name a
category:
text: 1
details: details:
selector: div.torrent_name a selector: div.torrent_name a
attribute: href attribute: href