diff options
author | bashonly <88596187+bashonly@users.noreply.github.com> | 2023-10-22 18:05:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-22 23:05:22 +0000 |
commit | a40e0b37dfc8c26916b0e01aa3f29f3bc42250b6 (patch) | |
tree | 098f05ab0817eaf7393904729e0c6d1e2517347d | |
parent | 4e38e2ae9d7380015349e6aee59c78bb3938befd (diff) |
[core] Only ensure playlist thumbnail dir if writing thumbs (#8373)
Bugfix for 2acd1d555ef89851c73773776715d3de9a0e30b9
Closes #8372
Authored by: bashonly
-rw-r--r-- | yt_dlp/YoutubeDL.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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]: |