minor refactors

This commit is contained in:
geoffrey45
2021-12-29 18:42:38 +03:00
parent 585a403a6c
commit 6dbf8efb90
7 changed files with 83 additions and 109 deletions
+2 -2
View File
@@ -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)