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

Bugfix for 2acd1d555e

Closes #8372
Authored by: bashonly
pull/8416/head
bashonly 2023-10-22 18:05:22 -05:00 zatwierdzone przez GitHub
rodzic 4e38e2ae9d
commit a40e0b37df
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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]: