mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 19:18:20 +01:00
Fixed f string error
This commit is contained in:
parent
a5e9c3089b
commit
7fbd295c87
1 changed files with 3 additions and 3 deletions
|
@ -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, ))
|
||||
|
|
Loading…
Reference in a new issue