From ce378eec695f40f46aa501bd8b71dfefa47fc1f4 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Wed, 21 Oct 2020 16:56:20 +1300 Subject: [PATCH] mvgroup: optional cat config support for torznab app compatibility --- .../Definitions/mvgroupforum.yml | 20 ++++++++++++------- .../Definitions/mvgroupmain.yml | 20 ++++++++++++------- 2 files changed, 26 insertions(+), 14 deletions(-) diff --git a/src/Jackett.Common/Definitions/mvgroupforum.yml b/src/Jackett.Common/Definitions/mvgroupforum.yml index 1850afc7b..69e5956e9 100644 --- a/src/Jackett.Common/Definitions/mvgroupforum.yml +++ b/src/Jackett.Common/Definitions/mvgroupforum.yml @@ -11,8 +11,10 @@ legacylinks: - http://forums.mvgroup.org/ caps: - categorymappings: - - {id: 1, cat: TV, desc: "TV"} + categories: + 1: TV + 2: Movies + 3: Other modes: search: [q] @@ -26,6 +28,14 @@ settings: - name: password type: password label: Password + - name: category-id + type: select + label: The MVGroup 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: hidef type: checkbox label: Show MVGroup HiDef Releases only @@ -98,10 +108,6 @@ settings: type: checkbox label: Strip the S01E01 from the Torznab search requests default: false - - name: info - type: info - label: Category for Sonarr and Radarr - default: MVGroup does not use categories. In your Sonarr or Radarr Torznab Indexer settings, set the category to 100001. - name: sort type: select label: Sort requested from site @@ -156,7 +162,7 @@ search: fields: category: - text: 1 + text: "{{ .Config.category-id }}" title: # fallback title (to prevent abend if optional is not found) text: "title not found" diff --git a/src/Jackett.Common/Definitions/mvgroupmain.yml b/src/Jackett.Common/Definitions/mvgroupmain.yml index 81e42f085..3ba24b007 100644 --- a/src/Jackett.Common/Definitions/mvgroupmain.yml +++ b/src/Jackett.Common/Definitions/mvgroupmain.yml @@ -11,8 +11,10 @@ legacylinks: - http://forums.mvgroup.org/ caps: - categorymappings: - - {id: 1, cat: TV, desc: "TV"} + categories: + 1: TV + 2: Movies + 3: Other modes: search: [q] @@ -26,6 +28,14 @@ settings: - name: password type: password label: Password + - name: category-id + type: select + label: The MVGroup 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: hidef type: checkbox label: Show MVGroup HiDef Releases only @@ -98,10 +108,6 @@ settings: type: checkbox label: Strip the S01E01 from the Torznab search requests default: false - - name: info - type: info - label: Category for Sonarr and Radarr - default: MVGroup does not use categories. In your Sonarr or Radarr Torznab Indexer settings, set the category to 100001. - name: sort type: select label: Sort requested from site @@ -156,7 +162,7 @@ search: fields: category: - text: 1 + text: "{{ .Config.category-id }}" title: # fallback title (to prevent abend if optional is not found) text: "title not found"