mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-30 04:08:43 +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")
|
audio_itag = request.args.get("audio_itag")
|
||||||
video_itag = request.args.get("video_itag")
|
video_itag = request.args.get("video_itag")
|
||||||
# Download both audio and video
|
# 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}.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}.mp4", f"{os.getenv('PROXY_URL')}/latest_version?id={video_id}&itag={video_itag}&local=true"], check=True)
|
||||||
# Merge both files
|
# 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)
|
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, ))
|
thread = Thread(target=autodelete, args = (job_id, ))
|
||||||
|
@ -61,4 +61,4 @@ def get_merged_video():
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
from waitress import serve
|
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