mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-27 22:09:39 +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, ))
|
||||
|
@ -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"))
|
||||
serve(app, host="0.0.0.0", port=os.getenv("PORT"))
|
||||
|
|
Loading…
Reference in a new issue