Update app.py
Browse files
app.py
CHANGED
|
@@ -113,7 +113,7 @@ def downloadTubeUpload(query):
|
|
| 113 |
}
|
| 114 |
with requests.get(best_audio_format["url"], stream=True) as r:
|
| 115 |
r.raise_for_status()
|
| 116 |
-
upload_response = requests.post(upload_url, headers=headers, data=r.raw).json()
|
| 117 |
return upload_response.get("result", {}).get("id")
|
| 118 |
|
| 119 |
def split_file(file_id):
|
|
|
|
| 113 |
}
|
| 114 |
with requests.get(best_audio_format["url"], stream=True) as r:
|
| 115 |
r.raise_for_status()
|
| 116 |
+
upload_response = requests.post(upload_url, headers=headers, data=r.raw, timeout=300).json()
|
| 117 |
return upload_response.get("result", {}).get("id")
|
| 118 |
|
| 119 |
def split_file(file_id):
|