no log: improved notification and logging on invalid subtitles

pull/2304/head
morpheus65535 10 months ago
parent c10f5cf1a7
commit 3da0445dc3

@ -189,8 +189,8 @@ def manual_download_subtitle(path, audio_language, hi, forced, subtitle, provide
return 'Error downloading Subtitles' return 'Error downloading Subtitles'
else: else:
if not subtitle.is_valid(): if not subtitle.is_valid():
logging.exception(f'BAZARR No valid Subtitles file found for this file: {path}') logging.error(f"BAZARR Downloaded subtitles isn't valid for this file: {path}")
return 'No valid Subtitles file found' return "Downloaded subtitles isn't valid. Check log."
try: try:
chmod = int(settings.general.chmod, 8) if not sys.platform.startswith( chmod = int(settings.general.chmod, 8) if not sys.platform.startswith(
'win') and settings.general.chmod_enabled else None 'win') and settings.general.chmod_enabled else None

Loading…
Cancel
Save