mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-23 22:55:52 -07:00
review commetns
This commit is contained in:
parent
633ab0c56f
commit
7f23f02da7
1 changed files with 1 additions and 1 deletions
|
@ -1879,7 +1879,7 @@ class YoutubeDL(object):
|
||||||
except (OSError, IOError):
|
except (OSError, IOError):
|
||||||
self.report_error('Cannot write subtitles file ' + sub_filename)
|
self.report_error('Cannot write subtitles file ' + sub_filename)
|
||||||
return
|
return
|
||||||
elif sub_info.get('downloader') is not None:
|
elif callable(sub_info.get('downloader')):
|
||||||
sub_info.get('downloader')(self, encodeFilename(sub_filename))
|
sub_info.get('downloader')(self, encodeFilename(sub_filename))
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue