btdb: add music and book modes

code tidy
This commit is contained in:
Garfield69 2020-10-30 16:02:49 +13:00
parent e266c9f4ac
commit 9535681b38
1 changed files with 12 additions and 10 deletions

View File

@ -30,19 +30,21 @@ legacylinks:
- https://btdb.unblockit.top/
caps:
categorymappings:
- {id: 1, cat: Other, desc: "Other"}
categories:
Other: Other
modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]
music-search: [q]
book-search: [q]
settings:
- name: info
- name: info_8000
type: info
label: Category for Sonarr and Radarr
default: BTDB does not use categories. In your Sonarr or Radarr Torznab Indexer settings, set the category to 100001.
label: About BTDB Categories
default: BTDB does not return categories in its search results.</br>To add to your Apps' Torznab indexer, replace all categories with 8000(Other).
- name: sort
type: select
label: Sort requested from site
@ -65,7 +67,7 @@ search:
fields:
category:
text: 1
text: Other
title:
selector: a[href*="/torrent/"]
attribute: title
@ -86,6 +88,10 @@ search:
filters:
- name: replace
args: ["https://btdb.io/assets/img/placeholder.png", ""]
date:
selector: small:nth-of-type(5) strong
filters:
- name: timeago
size:
selector: small:nth-of-type(1) strong
files:
@ -100,10 +106,6 @@ search:
filters:
- name: replace
args: [",", ""]
date:
selector: small:nth-of-type(5) strong
filters:
- name: timeago
downloadvolumefactor:
text: 0
uploadvolumefactor: