mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-02-24 14:57:16 +08:00
no log: improved notification and logging on invalid subtitles
This commit is contained in:
parent
c10f5cf1a7
commit
3da0445dc3
1 changed files with 2 additions and 2 deletions
|
@ -189,8 +189,8 @@ def manual_download_subtitle(path, audio_language, hi, forced, subtitle, provide
|
|||
return 'Error downloading Subtitles'
|
||||
else:
|
||||
if not subtitle.is_valid():
|
||||
logging.exception(f'BAZARR No valid Subtitles file found for this file: {path}')
|
||||
return 'No valid Subtitles file found'
|
||||
logging.error(f"BAZARR Downloaded subtitles isn't valid for this file: {path}")
|
||||
return "Downloaded subtitles isn't valid. Check log."
|
||||
try:
|
||||
chmod = int(settings.general.chmod, 8) if not sys.platform.startswith(
|
||||
'win') and settings.general.chmod_enabled else None
|
||||
|
|
Loading…
Reference in a new issue