0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-23 02:25:11 +00:00

Merge pull request #2725 from foolscap/subtitles-error-fix

Fix subtitle download error reporting (Fixes #2724)
This commit is contained in:
Philipp Hagemeister 2014-04-09 10:16:06 +02:00
commit f983c44199

2
youtube_dl/YoutubeDL.py Normal file → Executable file
View file

@ -936,7 +936,7 @@ def process_info(self, info_dict):
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):