mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
minor refactors
This commit is contained in:
+2
-2
@@ -353,8 +353,8 @@ def getAlbums():
|
||||
|
||||
@bp.route('/albums/<query>')
|
||||
def getAlbumSongs(query: str):
|
||||
album = query.split('::')[0]
|
||||
artist = query.split('::')[1]
|
||||
album = query.split('::')[0].replace('|', '/')
|
||||
artist = query.split('::')[1].replace('|', '/')
|
||||
|
||||
songs = all_songs_instance.find_songs_by_album(album, artist)
|
||||
songs_array = convert_to_json(songs)
|
||||
|
||||
Reference in New Issue
Block a user