diff --git a/GUI.py b/GUI.py index 47dfc25..76058e9 100644 --- a/GUI.py +++ b/GUI.py @@ -43,7 +43,7 @@ def index(): @app.route("/backgrounds", methods=["GET"]) def backgrounds(): - return render_template("backgrounds.html", file="backgrounds.json") + return render_template("backgrounds.html", file="background_videos.json") @app.route("/background/add", methods=["POST"]) @@ -93,10 +93,10 @@ def videos_json(): return send_from_directory("video_creation/data", "videos.json") -# Make backgrounds.json accessible -@app.route("/backgrounds.json") +# Make background_videos.json accessible +@app.route("/background_videos.json") def backgrounds_json(): - return send_from_directory("utils", "backgrounds.json") + return send_from_directory("utils", "background_videos.json") # Make videos in results folder accessible diff --git a/GUI/backgrounds.html b/GUI/backgrounds.html index 541e39f..438aa90 100644 --- a/GUI/backgrounds.html +++ b/GUI/backgrounds.html @@ -125,7 +125,7 @@ // Show background videos $(document).ready(function () { - $.getJSON("backgrounds.json", + $.getJSON("background_videos.json", function (data) { delete data["__comment"]; var background = ''; diff --git a/GUI/settings.html b/GUI/settings.html index f3f1751..f6317fe 100644 --- a/GUI/settings.html +++ b/GUI/settings.html @@ -200,9 +200,9 @@
- +
-