Deleted old ffmpeg platform download thing for windows. Added test audio file

This commit is contained in:
Andrew Beveridge committed 2025-03-31 02:34:48 -04:00
1 parent 5276b8ea9a
commit dc712508ad
2 files changed
-26

No files matched your search

-26
View File
@@ -1,26 +0,0 @@
import requests
def download_file(url, filename):
# Send a GET request to the URL
response = requests.get(url, stream=True)
# Check if the request was successful
if response.status_code == 200:
# Open a file with the specified filename in binary write mode
with open(filename, "wb") as file:
# Write the content of the response to the file
for chunk in response.iter_content(chunk_size=8192):
file.write(chunk)
print("Download completed.")
else:
print(f"Failed to download. Status code: {response.status_code}")
# URL of the file to be downloaded
url = "https://github.com/nomadkaraoke/karaoke-gen/releases/download/v0.8.3/ffmpeg.exe"
# Filename to save the downloaded file
filename = "platform/ffmpeg.exe"
# Call the function to download the file
download_file(url, filename)
Binary file not shown.