From 23a0a1ce0d2359aa1b56859f386930a907b36c70 Mon Sep 17 00:00:00 2001 From: Terry Geng Date: Wed, 5 Feb 2020 15:30:02 +0800 Subject: [PATCH] web interface bug fix2 --- interface.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interface.py b/interface.py index 3cdd67b..638a90d 100644 --- a/interface.py +++ b/interface.py @@ -133,7 +133,11 @@ def playlist(): @web.route("/post", methods=['POST']) @requires_auth def post(): + folder_path = var.music_folder + files = util.get_recursive_filelist_sorted(var.music_folder) music_library = util.Dir(folder_path) + for file in files: + music_library.add_file(file) if request.method == 'POST': logging.debug("Post request: "+ str(request.form)) if 'add_file_bottom' in request.form and ".." not in request.form['add_file_bottom']: