add sonarr season folder option.

Credit goes to https://github.com/l3uddz/traktarr/pull/148

close #131
pull/165/head
salty 2 years ago
parent 1f90abffe8
commit 5613682f89

@ -334,6 +334,7 @@ You can repeat this process for as many users as you like.
"language": "English",
"quality": "HD-1080p",
"root_folder": "/tv/",
"season_folder": true,
"tags": [],
"url": "http://localhost:8989/"
},
@ -981,6 +982,7 @@ Sonarr configuration.
"language": "English",
"quality": "HD-1080p",
"root_folder": "/tv/",
"season_folder": true,
"tags": [],
"url": "http://localhost:8989"
},
@ -994,6 +996,8 @@ Sonarr configuration.
`root_folder` - Root folder for TV shows.
`season_folder` - Sort episodes into season folders.
`tags` - Assign tags to shows. Tags need to be created in Sonarr first.
- Examples:

@ -43,14 +43,14 @@ class Sonarr(PVR):
@backoff.on_predicate(backoff.expo, lambda x: x is None, max_tries=4, on_backoff=backoff_handler)
def add_series(self, series_tvdb_id, series_title, series_title_slug, quality_profile_id, language_profile_id,
root_folder, tag_ids=None, search_missing=False, series_type='standard'):
root_folder, season_folder=True, tag_ids=None, search_missing=False, series_type='standard'):
payload = self._prepare_add_object_payload(series_title, series_title_slug, quality_profile_id, root_folder)
payload = dict_merge(payload, {
'tvdbId': series_tvdb_id,
'tags': [] if not tag_ids or not isinstance(tag_ids, list) else tag_ids,
'seasons': [],
'seasonFolder': True,
'seasonFolder': season_folder,
'seriesType': series_type,
'addOptions': {
'searchForMissingEpisodes': search_missing

@ -95,6 +95,7 @@ class Config(object, metaclass=Singleton):
'language': 'English',
'quality': 'HD-1080p',
'root_folder': '/tv/',
'season_folder': True,
'tags': [],
'url': 'http://localhost:8989/'
},

@ -106,6 +106,7 @@
"quality": "HD-1080p",
"url": "http://localhost:8989/",
"root_folder": "/tv/",
"season_folder": true,
"tags": {}
},
"omdb": {

@ -257,6 +257,7 @@ def show(
quality_profile_id,
language_profile_id,
cfg.sonarr.root_folder,
cfg.sonarr.season_folder,
tag_ids,
not no_search,
series_type,
@ -656,6 +657,7 @@ def shows(
quality_profile_id,
language_profile_id,
cfg.sonarr.root_folder,
cfg.sonarr.season_folder,
tag_ids,
not no_search,
series_type,

Loading…
Cancel
Save