mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-02 09:12:40 +01:00
parent
b9c7b1e9b4
commit
c70c418d33
@ -3859,9 +3859,12 @@ def _write_subtitles(self, info_dict, filename):
|
|||||||
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 (DownloadError, ExtractorError, IOError, OSError, ValueError) + network_exceptions as err:
|
except (DownloadError, ExtractorError, IOError, OSError, ValueError) + network_exceptions as err:
|
||||||
|
msg = f'Unable to download video subtitles for {sub_lang!r}: {err}'
|
||||||
if self.params.get('ignoreerrors') is not True: # False or 'only_download'
|
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)
|
if not self.params.get('ignoreerrors'):
|
||||||
self.report_warning(f'Unable to download video subtitles for {sub_lang!r}: {err}')
|
self.report_error(msg)
|
||||||
|
raise DownloadError(msg)
|
||||||
|
self.report_warning(msg)
|
||||||
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 New Issue
Block a user