fix: artist albums always sending all albums

+ move setproctitle inside if __name__ in manage.py
This commit is contained in:
mungai-njoroge
2023-09-14 21:04:07 +03:00
parent bacf68248b
commit fcb705cb0c
5 changed files with 8 additions and 9 deletions
+2 -2
View File
@@ -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
View File
@@ -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 {