when adding playlist, yt-dlp doesn't include thumbnail in the list

This commit is contained in:
ArabCoders 2025-01-02 19:51:36 +03:00
parent df69e91d41
commit d9b905fbde

View file

@ -91,6 +91,9 @@ class DownloadQueue:
if property in entry:
etr[f"playlist_{property}"] = entry.get(property)
if "thumbnail" not in etr and "youtube:" in entry.get("extractor", ""):
etr["thumbnail"] = f"https://img.youtube.com/vi/{etr['id']}/maxresdefault.jpg"
results.append(
await self.__add_entry(
entry=etr,