mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 04:23:01 +00:00
fix: artist albums always sending all albums
+ move setproctitle inside if __name__ in manage.py
This commit is contained in:
+2
-2
@@ -15,8 +15,8 @@ from app.api import (
|
||||
imgserver,
|
||||
playlist,
|
||||
search,
|
||||
send_file,
|
||||
settings,
|
||||
track,
|
||||
)
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ def create_api():
|
||||
with app.app_context():
|
||||
app.register_blueprint(album.api)
|
||||
app.register_blueprint(artist.api)
|
||||
app.register_blueprint(track.api)
|
||||
app.register_blueprint(send_file.api)
|
||||
app.register_blueprint(search.api)
|
||||
app.register_blueprint(folder.api)
|
||||
app.register_blueprint(playlist.api)
|
||||
|
||||
+1
-1
@@ -297,7 +297,7 @@ def get_artist_albums(artisthash: str):
|
||||
if artist is None:
|
||||
return {"error": "Artist not found"}, 404
|
||||
|
||||
if return_all is not None:
|
||||
if return_all is not None and return_all == "true":
|
||||
limit = len(all_albums)
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user