]> jfr.im git - yt-dlp.git/commitdiff
[core] Only ensure playlist thumbnail dir if writing thumbs (#8373)
authorbashonly <redacted>
Sun, 22 Oct 2023 23:05:22 +0000 (18:05 -0500)
committerGitHub <redacted>
Sun, 22 Oct 2023 23:05:22 +0000 (23:05 +0000)
Bugfix for 2acd1d555ef89851c73773776715d3de9a0e30b9

Closes #8372
Authored by: bashonly

yt_dlp/YoutubeDL.py

index 8e11646d3b233cdb1f1ccdb5e4765cfc03b7772c..d066efdc7cc1fc71527454fd6eac02e6de9bfbeb 100644 (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]: