Skip to content

Commit

Permalink
mvgroup: optional cat config support for torznab app compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
garfield69 committed Oct 21, 2020
1 parent cdf473e commit ce378ee
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 14 deletions.
20 changes: 13 additions & 7 deletions src/Jackett.Common/Definitions/mvgroupforum.yml
Expand Up @@ -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]
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down
20 changes: 13 additions & 7 deletions src/Jackett.Common/Definitions/mvgroupmain.yml
Expand Up @@ -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]
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit ce378ee

Please sign in to comment.