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

View File

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