mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
add route to get all tracks in path
+ add routes to save album and artist as a playlist
This commit is contained in:
+3
-1
@@ -83,7 +83,7 @@ def get_album_tracks_and_info():
|
||||
album.is_favorite = check_is_fav(albumhash, FavType.album)
|
||||
|
||||
return {
|
||||
"tracks": [track_serializer(t, retain_disc=True) for t in tracks],
|
||||
"tracks": [track_serializer(t, remove_disc=False) for t in tracks],
|
||||
"info": album,
|
||||
}
|
||||
|
||||
@@ -210,3 +210,5 @@ def get_similar_albums():
|
||||
pass
|
||||
|
||||
return {"albums": [serialize_for_card(a) for a in albums[:limit]]}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user