Skip to content

Commit 3ae8ac2

Browse files
committed
server: return updated song object
1 parent 28530d3 commit 3ae8ac2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/handler/player.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ async def updateSong(self, request: web.Request) -> web.Response:
124124
song.favourite = jdata.ensure("favourite", bool, song.favourite)
125125
song.source = jdata.ensure("source", str, song.source)
126126
song.spotify = jdata.ensure("spotify", str, song.spotify)
127-
return web.Response(status=200)
127+
return web.json_response(song.toDict())
128128

129129
async def postShuffle(self, request: web.Request) -> web.Response:
130130
"""post(/api/player/shuffle)"""

0 commit comments

Comments
 (0)