This commit is contained in:
TylerCG 2025-04-29 11:14:07 -04:00
parent 153a4eb555
commit ef7a17ffb1
2 changed files with 3 additions and 4 deletions

View File

@ -204,9 +204,9 @@ class dropout():
json_data.append(info_data) json_data.append(info_data)
# Sort the json_data by the 'SHOW' key # 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: 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(): class youtube():
def ydl(url, location): def ydl(url, location):

View File

@ -67,7 +67,6 @@
$(document).ready(function () { $(document).ready(function () {
$('#ydl_download').submit(function (event) { $('#ydl_download').submit(function (event) {
event.preventDefault(); // Prevent default form submission event.preventDefault(); // Prevent default form submission
alert("File is now downloading..."); // Placeholder, can be replaced with a loading spinner
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
@ -75,7 +74,7 @@
data: $('#ydl_download').serializeArray(), // Serialize form data data: $('#ydl_download').serializeArray(), // Serialize form data
success: function (data) { success: function (data) {
$('#downloadResult').html(data); // Show server response $('#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 clearInput(); // Clear the form fields after download is finished
}, },
error: function () { error: function () {