|
|
|
@ -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
|
|
|
|
|