From 9535681b38e6d81d3d26b63c09a1ea3b4c5d3098 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Fri, 30 Oct 2020 16:02:49 +1300 Subject: [PATCH] btdb: add music and book modes code tidy --- src/Jackett.Common/Definitions/btdb.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/Jackett.Common/Definitions/btdb.yml b/src/Jackett.Common/Definitions/btdb.yml index b8c7964bf..2fe87a5ff 100644 --- a/src/Jackett.Common/Definitions/btdb.yml +++ b/src/Jackett.Common/Definitions/btdb.yml @@ -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.
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: