fix: images and id not loading for playlists in watchlist
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user