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

[core] Only ensure playlist thumbnail dir if writing thumbs (#8373)

Bugfix for 2acd1d555e

Closes #8372
Authored by: bashonly
This commit is contained in:
bashonly 2023-10-22 18:05:22 -05:00 committed by GitHub
parent 4e38e2ae9d
commit a40e0b37df
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')
return ret
if not self._ensure_dir_exists(filename):
if thumbnails and not self._ensure_dir_exists(filename):
return None
for idx, t in list(enumerate(thumbnails))[::-1]: