Merge branch 'yt-dlp:master' into split-chapters-metadata-m4a-fix

This commit is contained in:
danilovsergei 2023-10-25 23:04:21 -07:00 committed by GitHub
commit c29caf1739
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4242,7 +4242,7 @@ def _write_thumbnails(self, label, info_dict, filename, thumb_filename_base=None
self.write_debug(f'Skipping writing {label} thumbnail') self.write_debug(f'Skipping writing {label} thumbnail')
return ret return ret
if not self._ensure_dir_exists(filename): if thumbnails and not self._ensure_dir_exists(filename):
return None return None
for idx, t in list(enumerate(thumbnails))[::-1]: for idx, t in list(enumerate(thumbnails))[::-1]: