mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
RES
This commit is contained in:
@@ -33,7 +33,8 @@ if platform in ("linux", "linux2"):
|
||||
|
||||
|
||||
music_file_list = []
|
||||
def rescan():
|
||||
def rescan(logger):
|
||||
logger.info("Rescan triggered")
|
||||
for mp3_item in Path.glob(Path(MUSIC_FOLDER), "**/*.mp3"):
|
||||
temp_music_file = mp3_item.as_posix()
|
||||
if platform == "win32":
|
||||
@@ -68,7 +69,7 @@ def update_music_list():
|
||||
|
||||
if __name__ == "__main__":
|
||||
rescan()
|
||||
thread = threading.Thread(target=thread_rescan, args=("Updater",app.logger))
|
||||
thread = threading.Thread(target=thread_rescan, args=["Updater",app.logger])
|
||||
thread.start()
|
||||
app.run(debug=True, host="0.0.0.0")
|
||||
#from waitress import serve
|
||||
|
||||
Reference in New Issue
Block a user