mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 01:02:13 +01:00
parent
ebed8b3732
commit
6020e05d23
1 changed files with 3 additions and 2 deletions
|
@ -3746,9 +3746,10 @@ def _write_subtitles(self, info_dict, filename):
|
||||||
self.dl(sub_filename, sub_copy, subtitle=True)
|
self.dl(sub_filename, sub_copy, subtitle=True)
|
||||||
sub_info['filepath'] = sub_filename
|
sub_info['filepath'] = sub_filename
|
||||||
ret.append((sub_filename, sub_filename_final))
|
ret.append((sub_filename, sub_filename_final))
|
||||||
except (ExtractorError, IOError, OSError, ValueError) + network_exceptions as err:
|
except (DownloadError, ExtractorError, IOError, OSError, ValueError) + network_exceptions as err:
|
||||||
|
if self.params.get('ignoreerrors') is not True: # False or 'only_download'
|
||||||
|
raise DownloadError(f'Unable to download video subtitles for {sub_lang!r}: {err}', err)
|
||||||
self.report_warning(f'Unable to download video subtitles for {sub_lang!r}: {err}')
|
self.report_warning(f'Unable to download video subtitles for {sub_lang!r}: {err}')
|
||||||
continue
|
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
def _write_thumbnails(self, label, info_dict, filename, thumb_filename_base=None):
|
def _write_thumbnails(self, label, info_dict, filename, thumb_filename_base=None):
|
||||||
|
|
Loading…
Reference in a new issue