From d9b905fbde0f5cb886c865b71e012d5d923f6109 Mon Sep 17 00:00:00 2001 From: ArabCoders Date: Thu, 2 Jan 2025 19:51:36 +0300 Subject: [PATCH] when adding playlist, yt-dlp doesn't include thumbnail in the list --- app/library/DownloadQueue.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/library/DownloadQueue.py b/app/library/DownloadQueue.py index 8407f729..8f3ca350 100644 --- a/app/library/DownloadQueue.py +++ b/app/library/DownloadQueue.py @@ -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,