no log: prevent apprise from logging when no notification providers are configured.

This commit is contained in:
morpheus65535 2022-05-14 09:39:26 -04:00
parent 9c2737c963
commit 8bc2347bc5
1 changed files with 4 additions and 0 deletions

View File

@ -84,6 +84,8 @@ def get_movie(radarr_id):
def send_notifications(sonarr_series_id, sonarr_episode_id, message):
providers = get_notifier_providers()
if not len(providers):
return
series = get_series(sonarr_series_id)
if not series:
return
@ -114,6 +116,8 @@ def send_notifications(sonarr_series_id, sonarr_episode_id, message):
def send_notifications_movie(radarr_id, message):
providers = get_notifier_providers()
if not len(providers):
return
movie = get_movie(radarr_id)
if not movie:
return