mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-26 17:47:20 +00:00
Continuing development.
This commit is contained in:
parent
e9864febc1
commit
21ebd0c1e5
1 changed files with 5 additions and 6 deletions
|
@ -101,13 +101,12 @@ def send_notifications(sonarrSeriesId, sonarrEpisodeId, message):
|
||||||
apobj = apprise.Apprise()
|
apobj = apprise.Apprise()
|
||||||
|
|
||||||
for provider in providers:
|
for provider in providers:
|
||||||
if provider[1] is not None:
|
if provider.url is not None:
|
||||||
apobj.add(provider[1])
|
apobj.add(provider.url)
|
||||||
|
|
||||||
apobj.notify(
|
apobj.notify(
|
||||||
title='Bazarr notification',
|
title='Bazarr notification',
|
||||||
body=(series + ' - S' + str(episode[1]).zfill(2) + 'E' + str(episode[2]).zfill(2) + ' - ' + episode[
|
body=(series + ' - S' + str(episode.season).zfill(2) + 'E' + str(episode.episode).zfill(2) + ' - ' + episode.title + ' : ' + message),
|
||||||
0] + ' : ' + message),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -118,8 +117,8 @@ def send_notifications_movie(radarrId, message):
|
||||||
apobj = apprise.Apprise()
|
apobj = apprise.Apprise()
|
||||||
|
|
||||||
for provider in providers:
|
for provider in providers:
|
||||||
if provider[1] is not None:
|
if provider.url is not None:
|
||||||
apobj.add(provider[1])
|
apobj.add(provider.url)
|
||||||
|
|
||||||
apobj.notify(
|
apobj.notify(
|
||||||
title='Bazarr notification',
|
title='Bazarr notification',
|
||||||
|
|
Loading…
Reference in a new issue