mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-01-27 12:47:34 +01:00
[core] Only ensure playlist thumbnail dir if writing thumbs (#8373)
Bugfix for 2acd1d555ef89851c73773776715d3de9a0e30b9 Closes #8372 Authored by: bashonly
This commit is contained in:
parent
4e38e2ae9d
commit
a40e0b37df
@ -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]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user