Skip to content

Commit

Permalink
[core] Fix playlist thumb directory bug
Browse files Browse the repository at this point in the history
Bugfix for 2acd1d5

Closes yt-dlp#8372
Authored by: bashonly
  • Loading branch information
bashonly committed Oct 18, 2023
1 parent 4e38e2a commit 8c07484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt_dlp/YoutubeDL.py
Expand Up @@ -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]:
Expand Down

0 comments on commit 8c07484

Please sign in to comment.