From 872d85c458650716bf3ac3270c3905661acf2bf1 Mon Sep 17 00:00:00 2001 From: arabcoders Date: Wed, 18 Jun 2025 18:36:55 +0300 Subject: [PATCH] add log entry when playlist processing is completed. --- app/library/DownloadQueue.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/library/DownloadQueue.py b/app/library/DownloadQueue.py index cb27f098..b1a13585 100644 --- a/app/library/DownloadQueue.py +++ b/app/library/DownloadQueue.py @@ -202,7 +202,7 @@ class DownloadQueue(metaclass=Singleton): LOG.error(f"Failed to cancel downloads. {e!s}") async def _process_playlist(self, entry: dict, item: Item, already=None): - LOG.info(f"Processing playlist '{entry.get('id')}: {entry.get('title')}'.") + LOG.info(f"Playlist '{entry.get('id')}: {entry.get('title')}' processing.") entries = entry.get("entries", []) playlistCount = int(entry.get("playlist_count", len(entries))) results = [] @@ -228,6 +228,10 @@ class DownloadQueue(metaclass=Singleton): ) ) + LOG.info( + f"Playlist '{entry.get('id')}: {entry.get('title')}' processing completed with '{len(results)}' entries." + ) + if any("error" == res["status"] for res in results): return { "status": "error",