diff options
author | morpheus65535 <[email protected]> | 2023-01-24 06:39:10 -0500 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2023-01-24 06:39:10 -0500 |
commit | 5a98dfcf832cd71b904ee0df48ac9e645fa547e2 (patch) | |
tree | 792da4d08537cf78f56d2a2f0bb9f10aadec1483 | |
parent | 24db17cd03c1259ebf20d5da51e054f7288ae8ea (diff) | |
download | bazarr-5a98dfcf832cd71b904ee0df48ac9e645fa547e2.tar.gz bazarr-5a98dfcf832cd71b904ee0df48ac9e645fa547e2.zip |
no log: pep8 style fix
-rw-r--r-- | bazarr/app/signalr_client.py | 1 | ||||
-rw-r--r-- | bazarr/subtitles/manual.py | 2 | ||||
-rw-r--r-- | bazarr/subtitles/refiners/database.py | 6 |
3 files changed, 5 insertions, 4 deletions
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'] |