From 21ebd0c1e5038f4646d2f27585e71c0f4935a09a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Wed, 21 Aug 2019 13:38:33 -0400 Subject: [PATCH] Continuing development. --- bazarr/notifier.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/bazarr/notifier.py b/bazarr/notifier.py index 5794951ce..8deee37a0 100644 --- a/bazarr/notifier.py +++ b/bazarr/notifier.py @@ -101,13 +101,12 @@ def send_notifications(sonarrSeriesId, sonarrEpisodeId, message): apobj = apprise.Apprise() for provider in providers: - if provider[1] is not None: - apobj.add(provider[1]) + if provider.url is not None: + apobj.add(provider.url) apobj.notify( title='Bazarr notification', - body=(series + ' - S' + str(episode[1]).zfill(2) + 'E' + str(episode[2]).zfill(2) + ' - ' + episode[ - 0] + ' : ' + message), + body=(series + ' - S' + str(episode.season).zfill(2) + 'E' + str(episode.episode).zfill(2) + ' - ' + episode.title + ' : ' + message), ) @@ -118,8 +117,8 @@ def send_notifications_movie(radarrId, message): apobj = apprise.Apprise() for provider in providers: - if provider[1] is not None: - apobj.add(provider[1]) + if provider.url is not None: + apobj.add(provider.url) apobj.notify( title='Bazarr notification',