Improve: when server not return "MULTI_PART_SUCCESS"
This commit is contained in:
parent
0fd44117ec
commit
216c9085c1
@ -260,7 +260,7 @@ class Bilibili:
|
|||||||
),
|
),
|
||||||
chunks_data,
|
chunks_data,
|
||||||
)
|
)
|
||||||
if r.text != "MULTIPART_PUT_SUCCESS":
|
if r.status_code != 200:
|
||||||
continue
|
continue
|
||||||
print('{} : UPLOAD {}/{}'.format(datetime.strftime(datetime.now(), "%y%m%d %H%M"), chunks_index,
|
print('{} : UPLOAD {}/{}'.format(datetime.strftime(datetime.now(), "%y%m%d %H%M"), chunks_index,
|
||||||
chunks_num), r.text)
|
chunks_num), r.text)
|
||||||
|
Reference in New Issue
Block a user