Update app.py
Browse files
app.py
CHANGED
|
@@ -110,8 +110,8 @@ def downloadTubeUpload(query):
|
|
| 110 |
headers = {
|
| 111 |
"Content-Disposition": f"attachment; filename={video_id}.mp4"
|
| 112 |
}
|
| 113 |
-
|
| 114 |
-
command = f"wget {
|
| 115 |
os.system(command)
|
| 116 |
command= f'curl --url https://www.lalal.ai/api/upload/ --data-binary @temp.mp4 --header "Content-Disposition: attachment; filename=temp.mp4"'
|
| 117 |
output=os.getoutput(command)
|
|
|
|
| 110 |
headers = {
|
| 111 |
"Content-Disposition": f"attachment; filename={video_id}.mp4"
|
| 112 |
}
|
| 113 |
+
aurl=best_audio_format["url"]
|
| 114 |
+
command = f"wget {aurl} -O temp.mp4"
|
| 115 |
os.system(command)
|
| 116 |
command= f'curl --url https://www.lalal.ai/api/upload/ --data-binary @temp.mp4 --header "Content-Disposition: attachment; filename=temp.mp4"'
|
| 117 |
output=os.getoutput(command)
|