From 7fbd295c876b1f7de29ae354e8b31e7dcc1e7844 Mon Sep 17 00:00:00 2001 From: nin0dev Date: Sat, 22 Jun 2024 15:26:47 -0400 Subject: [PATCH] Fixed f string error --- videobundler/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/videobundler/main.py b/videobundler/main.py index a8d662f2..96a22327 100644 --- a/videobundler/main.py +++ b/videobundler/main.py @@ -44,8 +44,8 @@ def get_merged_video(): audio_itag = request.args.get("audio_itag") video_itag = request.args.get("video_itag") # Download both audio and video - subprocess.run(["wget", f"-O{job_id}.m4a", f"{os.getenv("PROXY_URL")}/latest_version?id={video_id}&itag={audio_itag}&local=true"], check=True) - subprocess.run(["wget", f"-O{job_id}.mp4", f"{os.getenv("PROXY_URL")}/latest_version?id={video_id}&itag={video_itag}&local=true"], check=True) + subprocess.run(["wget", f"-O{job_id}.m4a", f"{os.getenv('PROXY_URL')}/latest_version?id={video_id}&itag={audio_itag}&local=true"], check=True) + subprocess.run(["wget", f"-O{job_id}.mp4", f"{os.getenv('PROXY_URL')}/latest_version?id={video_id}&itag={video_itag}&local=true"], check=True) # Merge both files subprocess.run(f"ffmpeg -i {pwd}/{job_id}.m4a -i {pwd}/{job_id}.mp4 -c copy {pwd}/output.{job_id}.mp4", shell=True, check=True) thread = Thread(target=autodelete, args = (job_id, )) @@ -61,4 +61,4 @@ def get_merged_video(): if __name__ == "__main__": from waitress import serve - serve(app, host="0.0.0.0", port=os.getenv("PORT")) \ No newline at end of file + serve(app, host="0.0.0.0", port=os.getenv("PORT"))