add log entry when playlist processing is completed.
This commit is contained in:
parent
690ecf834f
commit
872d85c458
1 changed files with 5 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue