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
+4 -5
View File
@@ -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,