mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-08 12:15:39 +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,
|
imgserver,
|
||||||
playlist,
|
playlist,
|
||||||
search,
|
search,
|
||||||
|
send_file,
|
||||||
settings,
|
settings,
|
||||||
track,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ def create_api():
|
|||||||
with app.app_context():
|
with app.app_context():
|
||||||
app.register_blueprint(album.api)
|
app.register_blueprint(album.api)
|
||||||
app.register_blueprint(artist.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(search.api)
|
||||||
app.register_blueprint(folder.api)
|
app.register_blueprint(folder.api)
|
||||||
app.register_blueprint(playlist.api)
|
app.register_blueprint(playlist.api)
|
||||||
|
@ -297,7 +297,7 @@ def get_artist_albums(artisthash: str):
|
|||||||
if artist is None:
|
if artist is None:
|
||||||
return {"error": "Artist not found"}, 404
|
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)
|
limit = len(all_albums)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -13,7 +13,7 @@ help_args_list = [
|
|||||||
[
|
[
|
||||||
"--scan-interval",
|
"--scan-interval",
|
||||||
"-psi",
|
"-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",
|
"--build",
|
||||||
|
@ -78,17 +78,16 @@ def start_watchdog():
|
|||||||
WatchDog().run()
|
WatchDog().run()
|
||||||
|
|
||||||
|
|
||||||
setproctitle.setproctitle(
|
|
||||||
f"swingmusic - {FLASKVARS.FLASK_HOST}:{FLASKVARS.FLASK_PORT}"
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
HandleArgs()
|
HandleArgs()
|
||||||
log_startup_info()
|
log_startup_info()
|
||||||
bg_run_setup()
|
bg_run_setup()
|
||||||
start_watchdog()
|
start_watchdog()
|
||||||
|
|
||||||
|
setproctitle.setproctitle(
|
||||||
|
f"swingmusic - {FLASKVARS.FLASK_HOST}:{FLASKVARS.FLASK_PORT}"
|
||||||
|
)
|
||||||
|
|
||||||
app.run(
|
app.run(
|
||||||
debug=False,
|
debug=False,
|
||||||
threaded=True,
|
threaded=True,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user