mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-06 03:05:35 +00:00
fix: artist albums always sending all albums
+ move setproctitle inside if __name__ in manage.py
This commit is contained in:
parent
bacf68248b
commit
fcb705cb0c
@ -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)
|
||||
|
@ -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 {
|
||||
|
@ -13,7 +13,7 @@ help_args_list = [
|
||||
[
|
||||
"--scan-interval",
|
||||
"-psi",
|
||||
"Set the periodic scan interval in seconds. Default is 300 seconds (5 minutes)",
|
||||
"Set the periodic scan interval in seconds. Default is 600 seconds (10 minutes)",
|
||||
],
|
||||
[
|
||||
"--build",
|
||||
|
@ -78,17 +78,16 @@ def start_watchdog():
|
||||
WatchDog().run()
|
||||
|
||||
|
||||
setproctitle.setproctitle(
|
||||
f"swingmusic - {FLASKVARS.FLASK_HOST}:{FLASKVARS.FLASK_PORT}"
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
HandleArgs()
|
||||
log_startup_info()
|
||||
bg_run_setup()
|
||||
start_watchdog()
|
||||
|
||||
setproctitle.setproctitle(
|
||||
f"swingmusic - {FLASKVARS.FLASK_HOST}:{FLASKVARS.FLASK_PORT}"
|
||||
)
|
||||
|
||||
app.run(
|
||||
debug=False,
|
||||
threaded=True,
|
||||
|
Loading…
x
Reference in New Issue
Block a user