no log: pep8 style fix

pull/2045/head
morpheus65535 2 years ago
parent 24db17cd03
commit 5a98dfcf83

@ -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

@ -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

@ -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']

Loading…
Cancel
Save