diff options
author | morpheus65535 <[email protected]> | 2024-05-12 10:11:43 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2024-05-12 10:11:43 -0400 |
commit | fd0a8c3d3bd1beadb1fed1a58013e386d3f29653 (patch) | |
tree | 66eea32c46ec4f7ee70a019a754ba834a0c938bd | |
parent | 86d34039a35387e33663f14b30a65cc1165b4fc7 (diff) | |
download | bazarr-fd0a8c3d3bd1beadb1fed1a58013e386d3f29653.tar.gz bazarr-fd0a8c3d3bd1beadb1fed1a58013e386d3f29653.zip |
Emergency fix following Apprise 1.8.0 upgrade
-rw-r--r-- | bazarr/app/notifier.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bazarr/app/notifier.py b/bazarr/app/notifier.py index 931a700a4..f248dfcce 100644 --- a/bazarr/app/notifier.py +++ b/bazarr/app/notifier.py @@ -1,6 +1,6 @@ # coding=utf-8 -import apprise +from apprise import Apprise, AppriseAsset import logging from .database import TableSettingsNotifier, TableEpisodes, TableShows, TableMovies, database, insert, delete, select @@ -8,7 +8,7 @@ from .database import TableSettingsNotifier, TableEpisodes, TableShows, TableMov def update_notifier(): # define apprise object - a = apprise.Apprise() + a = Apprise() # Retrieve all the details results = a.details() @@ -70,9 +70,9 @@ def send_notifications(sonarr_series_id, sonarr_episode_id, message): if not episode: return - asset = apprise.AppriseAsset(async_mode=False) + asset = AppriseAsset(async_mode=False) - apobj = apprise.Apprise(asset=asset) + apobj = Apprise(asset=asset) for provider in providers: if provider.url is not None: @@ -101,9 +101,9 @@ def send_notifications_movie(radarr_id, message): else: movie_year = '' - asset = apprise.AppriseAsset(async_mode=False) + asset = AppriseAsset(async_mode=False) - apobj = apprise.Apprise(asset=asset) + apobj = Apprise(asset=asset) for provider in providers: if provider.url is not None: |