From fd0a8c3d3bd1beadb1fed1a58013e386d3f29653 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Sun, 12 May 2024 10:11:43 -0400 Subject: [PATCH] Emergency fix following Apprise 1.8.0 upgrade --- bazarr/app/notifier.py | 12 ++++++------ 1 file 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: