From a40e0b37dfc8c26916b0e01aa3f29f3bc42250b6 Mon Sep 17 00:00:00 2001 From: bashonly <88596187+bashonly@users.noreply.github.com> Date: Sun, 22 Oct 2023 18:05:22 -0500 Subject: [PATCH] [core] Only ensure playlist thumbnail dir if writing thumbs (#8373) Bugfix for 2acd1d555ef89851c73773776715d3de9a0e30b9 Closes #8372 Authored by: bashonly --- yt_dlp/YoutubeDL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 8e11646d3..d066efdc7 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -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]: