rogerxavier
commited on
Commit
•
2815f60
1
Parent(s):
0de437b
Update api.py
Browse files
api.py
CHANGED
@@ -157,7 +157,7 @@ def returnRandomSubscribeUrl(background_tasks: BackgroundTasks)->str:
|
|
157 |
|
158 |
|
159 |
async def upload_video(meta:dict):
|
160 |
-
#假设最多重新上传5次,上传cover
|
161 |
max_attempts = 5
|
162 |
attempts = 0
|
163 |
while attempts < max_attempts:
|
|
|
157 |
|
158 |
|
159 |
async def upload_video(meta:dict):
|
160 |
+
#假设最多重新上传5次,上传cover使用随机图片,超时则再次执行
|
161 |
max_attempts = 5
|
162 |
attempts = 0
|
163 |
while attempts < max_attempts:
|