|
|
@ -111,7 +111,7 @@ def validate_pvr(pvr, pvr_type, notifications):
|
|
|
|
def get_quality_profile_id(pvr, quality_profile):
|
|
|
|
def get_quality_profile_id(pvr, quality_profile):
|
|
|
|
# retrieve profile id for requested quality profile
|
|
|
|
# retrieve profile id for requested quality profile
|
|
|
|
quality_profile_id = pvr.get_quality_profile_id(quality_profile)
|
|
|
|
quality_profile_id = pvr.get_quality_profile_id(quality_profile)
|
|
|
|
if not quality_profile_id or not quality_profile_id > 0:
|
|
|
|
if not quality_profile_id or quality_profile_id <= 0:
|
|
|
|
log.error("Aborting due to failure to retrieve Quality Profile ID for: %s", quality_profile)
|
|
|
|
log.error("Aborting due to failure to retrieve Quality Profile ID for: %s", quality_profile)
|
|
|
|
exit()
|
|
|
|
exit()
|
|
|
|
log.info("Retrieved Quality Profile ID for \'%s\': %d", quality_profile, quality_profile_id)
|
|
|
|
log.info("Retrieved Quality Profile ID for \'%s\': %d", quality_profile, quality_profile_id)
|
|
|
@ -121,7 +121,7 @@ def get_quality_profile_id(pvr, quality_profile):
|
|
|
|
def get_language_profile_id(pvr, language_profile):
|
|
|
|
def get_language_profile_id(pvr, language_profile):
|
|
|
|
# retrieve profile id for requested language profile
|
|
|
|
# retrieve profile id for requested language profile
|
|
|
|
language_profile_id = pvr.get_language_profile_id(language_profile)
|
|
|
|
language_profile_id = pvr.get_language_profile_id(language_profile)
|
|
|
|
if not language_profile_id or not language_profile_id > 0:
|
|
|
|
if not language_profile_id or language_profile_id <= 0:
|
|
|
|
log.error("No Language Profile ID for: %s", language_profile)
|
|
|
|
log.error("No Language Profile ID for: %s", language_profile)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
log.info("Retrieved Language Profile ID for \'%s\': %d", language_profile, language_profile_id)
|
|
|
|
log.info("Retrieved Language Profile ID for \'%s\': %d", language_profile, language_profile_id)
|
|
|
@ -267,8 +267,7 @@ def show(
|
|
|
|
tag_names)
|
|
|
|
tag_names)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
log.info("ADDED: \'%s (%s)\'", series_title, series_year)
|
|
|
|
log.info("ADDED: \'%s (%s)\'", series_title, series_year)
|
|
|
|
else:
|
|
|
|
elif profile_tags is not None:
|
|
|
|
if profile_tags is not None:
|
|
|
|
|
|
|
|
log.error("FAILED ADDING: \'%s (%s)\' with Sonarr Tags: %s", series_title, series_year,
|
|
|
|
log.error("FAILED ADDING: \'%s (%s)\' with Sonarr Tags: %s", series_title, series_year,
|
|
|
|
tag_names)
|
|
|
|
tag_names)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
@ -1399,7 +1398,7 @@ def automatic_shows(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
if added_shows is None:
|
|
|
|
if added_shows is None:
|
|
|
|
if not list_type.lower() == 'lists':
|
|
|
|
if list_type.lower() != 'lists':
|
|
|
|
log.info("FAILED ADDING shows from Trakt's \'%s\' list.", list_type)
|
|
|
|
log.info("FAILED ADDING shows from Trakt's \'%s\' list.", list_type)
|
|
|
|
time.sleep(10)
|
|
|
|
time.sleep(10)
|
|
|
|
continue
|
|
|
|
continue
|
|
|
@ -1535,7 +1534,7 @@ def automatic_movies(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
if added_movies is None:
|
|
|
|
if added_movies is None:
|
|
|
|
if not list_type.lower() == 'lists':
|
|
|
|
if list_type.lower() != 'lists':
|
|
|
|
log.info("FAILED ADDING movies from Trakt's \'%s\' list.", list_type.capitalize())
|
|
|
|
log.info("FAILED ADDING movies from Trakt's \'%s\' list.", list_type.capitalize())
|
|
|
|
time.sleep(10)
|
|
|
|
time.sleep(10)
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|