Skip to content

A feature-rich command-line audio/video downloader

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

bashonlya40e0b37dfc8
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index 8e11646d3b..d066efdc7c 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -4242,7 +4242,7 @@ class YoutubeDL:
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]: