From addd6ae226a2e059772b83ba4c02c44c81e4cb84 Mon Sep 17 00:00:00 2001 From: garfield69 Date: Tue, 3 Oct 2017 23:53:48 +1300 Subject: [PATCH] btdb: fix #1900 add support for Sonarr and Radarr (#1921) the btdb site does not use categories and supplies magnets for all sorts of content. So the btdb definition now always returns category `100001 Other` for all search results. Added info in settings to provide instructions on setting up btdb on Sonarr and Radarr. Tested on Jackett Dashboard, Sonarr and Radarr. --- src/Jackett/Definitions/btdb.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/Jackett/Definitions/btdb.yml b/src/Jackett/Definitions/btdb.yml index 938573687..8e0ba1c1b 100644 --- a/src/Jackett/Definitions/btdb.yml +++ b/src/Jackett/Definitions/btdb.yml @@ -10,15 +10,20 @@ caps: categorymappings: - - {id: 1, cat: TV, desc: "TV"} - - {id: 2, cat: Movies, desc: "Movies"} + - {id: 1, cat: Other, desc: "Other"} + - {id: 2, cat: TV, desc: "TV"} + - {id: 3, cat: Movies, desc: ""} modes: search: [q] tv-search: [q, season, ep] movie-search: [q] - settings: [] + settings: + - name: info + 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. search: path: "{{if .Keywords}}q/{{ .Keywords}}/?sort=time{{else}}recent{{end}}" @@ -28,6 +33,8 @@ title: selector: h2[class$="title"] a[href^="/torrent/"] attribute: title + category: + text: "1" details: selector: h2[class$="title"] a[href^="/torrent/"] attribute: href