Fixed download notifications not being sent properly.

This commit is contained in:
morpheus65535 2023-07-31 09:54:50 -04:00
parent 26f6fcb3ad
commit 164dc95f23
1 changed files with 4 additions and 4 deletions

View File

@ -75,8 +75,8 @@ def send_notifications(sonarr_series_id, sonarr_episode_id, message):
apobj = apprise.Apprise(asset=asset)
for provider in providers:
if provider['url'] is not None:
apobj.add(provider['url'])
if provider.url is not None:
apobj.add(provider.url)
apobj.notify(
title='Bazarr notification',
@ -107,8 +107,8 @@ def send_notifications_movie(radarr_id, message):
apobj = apprise.Apprise(asset=asset)
for provider in providers:
if provider['url'] is not None:
apobj.add(provider['url'])
if provider.url is not None:
apobj.add(provider.url)
apobj.notify(
title='Bazarr notification',