mirror of
https://github.com/morpheus65535/bazarr
synced 2025-03-04 02:18:12 +00:00
Bug correction
This commit is contained in:
parent
b34f2d44cf
commit
7e5527b420
3 changed files with 6 additions and 5 deletions
|
@ -165,9 +165,9 @@ def update_series():
|
|||
removed_series = list(set(current_shows_db_list) - set(current_shows_sonarr))
|
||||
|
||||
for series in removed_series:
|
||||
print(TableShows.delete().where(
|
||||
TableShows.delete().where(
|
||||
TableShows.tvdb_id == series
|
||||
).execute())
|
||||
).execute()
|
||||
|
||||
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,
|
||||
chmod=chmod,
|
||||
# formats=("srt", "vtt")
|
||||
path_decoder=None
|
||||
path_decoder=force_unicode
|
||||
)
|
||||
except Exception as e:
|
||||
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,
|
||||
chmod=chmod,
|
||||
# formats=("srt", "vtt")
|
||||
path_decoder=None)
|
||||
path_decoder=force_unicode)
|
||||
|
||||
except Exception as e:
|
||||
logging.exception('BAZARR Error saving Subtitles file to disk for this file:' + path)
|
||||
|
|
|
@ -176,8 +176,8 @@ class VideoFileParser:
|
|||
IOError: ffprobe execution failed
|
||||
|
||||
"""
|
||||
command = [parser] + commandArgs + [inputFile.encode(getfilesystemencoding())]
|
||||
if PY3:
|
||||
command = [parser] + commandArgs + [inputFile]
|
||||
completedProcess = subprocess.run(
|
||||
command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding="utf-8"
|
||||
)
|
||||
|
@ -187,6 +187,7 @@ class VideoFileParser:
|
|||
)
|
||||
return completedProcess.stdout
|
||||
else:
|
||||
command = [parser] + commandArgs + [inputFile.encode(getfilesystemencoding())]
|
||||
try:
|
||||
completedProcess = subprocess.check_output(
|
||||
command, stderr=subprocess.STDOUT
|
||||
|
|
Loading…
Add table
Reference in a new issue