Skip to content

Commit

Permalink
btdigg: optional cat config support for torznab app compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
garfield69 committed Oct 21, 2020
1 parent 2834154 commit 26d5f8a
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions src/Jackett.Common/Definitions/btdigg.yml
Expand Up @@ -10,33 +10,40 @@ links:

caps:
categories:
1: Other
1: TV
2: Movies
3: Other

modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]

settings:
- name: info
type: info
default: BTDigg does not use categories. In your software Indexer settings, set the category to 7000.
- name: category-id
type: select
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
type: select
label: Sort requested from site
default: "0"
default: 0
options:
"0": "relevance"
"2": "created"
"3": "size"
0: relevance
2: created
3: size

search:
# https://btdig.com/search?q=test&order=2
# only 10 results per page
paths:
- path: search
inputs:
q: "{{ if .Keywords }}{{ .Keywords }}{{else}}test{{end}}"
q: "{{ if .Keywords }}{{ .Keywords }}{{ else }}test{{ end }}"
# 0 relevance 2 age 3 size 4 files
order: "{{ .Config.sort }}"

Expand All @@ -46,10 +53,10 @@ search:
- name: andmatch

fields:
category:
text: "{{ .Config.category-id }}"
title:
selector: div.torrent_name a
category:
text: 1
details:
selector: div.torrent_name a
attribute: href
Expand Down

0 comments on commit 26d5f8a

Please sign in to comment.