diff --git a/bazarr/app/signalr_client.py b/bazarr/app/signalr_client.py index d20d42bb5..4b618757d 100644 --- a/bazarr/app/signalr_client.py +++ b/bazarr/app/signalr_client.py @@ -20,7 +20,6 @@ from radarr.sync.movies import update_movies, update_one_movie from sonarr.info import get_sonarr_info, url_sonarr from radarr.info import url_radarr from .database import TableShows -from .event_handler import event_stream from .config import settings from .scheduler import scheduler diff --git a/bazarr/subtitles/manual.py b/bazarr/subtitles/manual.py index a5a9edea6..4dcb574c5 100644 --- a/bazarr/subtitles/manual.py +++ b/bazarr/subtitles/manual.py @@ -14,7 +14,7 @@ from subliminal_patch.core_persistent import list_all_subtitles, download_subtit from subliminal_patch.score import ComputeScore from languages.get_languages import alpha3_from_alpha2 -from app.config import get_scores, settings, get_array_from, get_settings +from app.config import get_scores, settings, get_array_from from utilities.helper import get_target_folder, force_unicode from app.database import get_profiles_list diff --git a/bazarr/subtitles/refiners/database.py b/bazarr/subtitles/refiners/database.py index 8f10884b9..9988a8186 100644 --- a/bazarr/subtitles/refiners/database.py +++ b/bazarr/subtitles/refiners/database.py @@ -43,7 +43,8 @@ def refine_from_db(path, video): # Only refine year as a fallback if not video.year and data['year']: - if int(data['year']) > 0: video.year = int(data['year']) + if int(data['year']) > 0: + video.year = int(data['year']) video.series_tvdb_id = int(data['tvdbId']) video.alternative_series = ast.literal_eval(data['alternateTitles']) @@ -77,7 +78,8 @@ def refine_from_db(path, video): # Only refine year as a fallback if not video.year and data['year']: - if int(data['year']) > 0: video.year = int(data['year']) + if int(data['year']) > 0: + video.year = int(data['year']) if data['imdbId'] and not video.imdb_id: video.imdb_id = data['imdbId']