diff --git a/app/library/Download.py b/app/library/Download.py index 7887ee96..2428b32e 100644 --- a/app/library/Download.py +++ b/app/library/Download.py @@ -97,6 +97,9 @@ class Download: if data.get("postprocessor") != "MoveFiles" or data.get("status") != "finished": return + if self.debug: + LOG.debug(f"Postprocessor hook: {data}") + if "__finaldir" in data["info_dict"]: filename = os.path.join(data["info_dict"]["__finaldir"], os.path.basename(data["info_dict"]["filepath"])) else: 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, diff --git a/ui/components/Queue.vue b/ui/components/Queue.vue index f24db2fb..b8bf9465 100644 --- a/ui/components/Queue.vue +++ b/ui/components/Queue.vue @@ -22,8 +22,7 @@