Skip to content

Commit

Permalink
Emergency fix following Apprise 1.8.0 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus65535 committed May 12, 2024
1 parent 86d3403 commit fd0a8c3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bazarr/app/notifier.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# coding=utf-8

import apprise
from apprise import Apprise, AppriseAsset
import logging

from .database import TableSettingsNotifier, TableEpisodes, TableShows, TableMovies, database, insert, delete, select


def update_notifier():
# define apprise object
a = apprise.Apprise()
a = Apprise()

# Retrieve all the details
results = a.details()
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit fd0a8c3

Please sign in to comment.