diff --git a/server/app/imgserver/__init__.py b/server/app/imgserver/__init__.py index 333c100e..96999d00 100644 --- a/server/app/imgserver/__init__.py +++ b/server/app/imgserver/__init__.py @@ -47,7 +47,7 @@ def send_artist_image(imgpath: str): return {"msg": "Not found"}, 404 -@app.route('/p/') +@app.route("/p/") def send_playlist_image(imgpath: str): fpath = join(PLAYLIST_PATH, imgpath) exists = path.exists(fpath) @@ -57,9 +57,9 @@ def send_playlist_image(imgpath: str): return {"msg": "Not found"}, 404 + # TODO # Return Fallback images instead of JSON - if __name__ == "__main__": app.run(threaded=True, port=9877) diff --git a/server/app/lib/albumslib.py b/server/app/lib/albumslib.py index 0dcd0db9..3c673486 100644 --- a/server/app/lib/albumslib.py +++ b/server/app/lib/albumslib.py @@ -148,7 +148,6 @@ def create_album(track) -> models.Album: "artist": track["albumartist"], } - album_tracks = get_album_tracks(album["album"], album["artist"]) album["date"] = album_tracks[0]["date"]