diff --git a/app/download.py b/app/download.py index 0808147..38d9040 100644 --- a/app/download.py +++ b/app/download.py @@ -204,9 +204,9 @@ class dropout(): json_data.append(info_data) # Sort the json_data by the 'SHOW' key - sorted_json_data = sorted(json_data, key=lambda x: x['SHOW']) + # sorted_json_data = sorted(json_data, key=lambda x: x['SHOW']) with open('/data/dropout.json', 'w') as json_file: - json.dump(sorted_json_data, json_file, indent=4) + json.dump(json_data, json_file, indent=4) class youtube(): def ydl(url, location): diff --git a/app/templates/ydl.html b/app/templates/ydl.html index 392083b..b4b1124 100644 --- a/app/templates/ydl.html +++ b/app/templates/ydl.html @@ -67,7 +67,6 @@ $(document).ready(function () { $('#ydl_download').submit(function (event) { event.preventDefault(); // Prevent default form submission - alert("File is now downloading..."); // Placeholder, can be replaced with a loading spinner $.ajax({ type: 'POST', @@ -75,7 +74,7 @@ data: $('#ydl_download').serializeArray(), // Serialize form data success: function (data) { $('#downloadResult').html(data); // Show server response - alert("File has finished downloading"); // Update as necessary + alert("File is now downloading"); // Update as necessary clearInput(); // Clear the form fields after download is finished }, error: function () {