mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-26 18:34:32 +01:00
Fix subtitle download error reporting (Fixes #2724)
This commit is contained in:
parent
c47d21da80
commit
e4db19511a
2
youtube_dl/YoutubeDL.py
Normal file → Executable file
2
youtube_dl/YoutubeDL.py
Normal file → Executable file
@ -936,7 +936,7 @@ class YoutubeDL(object):
|
|||||||
with io.open(encodeFilename(sub_filename), 'w', encoding='utf-8') as subfile:
|
with io.open(encodeFilename(sub_filename), 'w', encoding='utf-8') as subfile:
|
||||||
subfile.write(sub)
|
subfile.write(sub)
|
||||||
except (OSError, IOError):
|
except (OSError, IOError):
|
||||||
self.report_error('Cannot write subtitles file ' + descfn)
|
self.report_error('Cannot write subtitles file ' + sub_filename)
|
||||||
return
|
return
|
||||||
|
|
||||||
if self.params.get('writeinfojson', False):
|
if self.params.get('writeinfojson', False):
|
||||||
|
Loading…
Reference in New Issue
Block a user