Bug correction

pull/684/head
Louis Vézina 5 years ago
parent b34f2d44cf
commit 7e5527b420

@ -165,9 +165,9 @@ def update_series():
removed_series = list(set(current_shows_db_list) - set(current_shows_sonarr)) removed_series = list(set(current_shows_db_list) - set(current_shows_sonarr))
for series in removed_series: for series in removed_series:
print(TableShows.delete().where( TableShows.delete().where(
TableShows.tvdb_id == series TableShows.tvdb_id == series
).execute()) ).execute()
logging.debug('BAZARR All series synced from Sonarr into database.') logging.debug('BAZARR All series synced from Sonarr into database.')

@ -202,7 +202,7 @@ def download_subtitle(path, language, hi, forced, providers, providers_auth, sce
directory=fld, directory=fld,
chmod=chmod, chmod=chmod,
# formats=("srt", "vtt") # formats=("srt", "vtt")
path_decoder=None path_decoder=force_unicode
) )
except Exception as e: except Exception as e:
logging.exception('BAZARR Error saving Subtitles file to disk for this file:' + path) logging.exception('BAZARR Error saving Subtitles file to disk for this file:' + path)
@ -429,7 +429,7 @@ def manual_download_subtitle(path, language, hi, forced, subtitle, provider, pro
directory=fld, directory=fld,
chmod=chmod, chmod=chmod,
# formats=("srt", "vtt") # formats=("srt", "vtt")
path_decoder=None) path_decoder=force_unicode)
except Exception as e: except Exception as e:
logging.exception('BAZARR Error saving Subtitles file to disk for this file:' + path) logging.exception('BAZARR Error saving Subtitles file to disk for this file:' + path)

@ -176,8 +176,8 @@ class VideoFileParser:
IOError: ffprobe execution failed IOError: ffprobe execution failed
""" """
command = [parser] + commandArgs + [inputFile.encode(getfilesystemencoding())]
if PY3: if PY3:
command = [parser] + commandArgs + [inputFile]
completedProcess = subprocess.run( completedProcess = subprocess.run(
command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding="utf-8" command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding="utf-8"
) )
@ -187,6 +187,7 @@ class VideoFileParser:
) )
return completedProcess.stdout return completedProcess.stdout
else: else:
command = [parser] + commandArgs + [inputFile.encode(getfilesystemencoding())]
try: try:
completedProcess = subprocess.check_output( completedProcess = subprocess.check_output(
command, stderr=subprocess.STDOUT command, stderr=subprocess.STDOUT

Loading…
Cancel
Save