You've already forked my-video-workflow
避免漏传chunk
This commit is contained in:
@ -241,8 +241,8 @@ def upload_chunk(upload_url, server_file_name, local_file_name, chunk_data, chun
|
||||
)
|
||||
print(r.status_code)
|
||||
print(r.content)
|
||||
|
||||
if r.status_code == 200 and r.json()['OK'] == 1:
|
||||
r.raise_for_status()
|
||||
if r.status_code == 200 and r.json().get("OK", 0) == 1:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
Reference in New Issue
Block a user