fix: images and id not loading for playlists in watchlist

This commit is contained in:
Xoconoch
2025-08-30 06:58:46 -06:00
parent 9e4b2fcd01
commit 5942e6ea36
4 changed files with 51 additions and 51 deletions

View File

@@ -205,6 +205,9 @@ async def get_playlist_info(
playlist_info = get_playlist(client, spotify_id, expand_items=False)
finally:
pass
# Ensure id field is present (librespot sometimes omits it)
if playlist_info and "id" not in playlist_info:
playlist_info["id"] = spotify_id
return JSONResponse(content=playlist_info, status_code=200)
except Exception as e: