Improve: when server not return "MULTI_PART_SUCCESS"

This commit is contained in:
Jerry Yan 2019-02-14 16:58:36 +08:00
parent 0fd44117ec
commit 216c9085c1

View File

@ -260,7 +260,7 @@ class Bilibili:
),
chunks_data,
)
if r.text != "MULTIPART_PUT_SUCCESS":
if r.status_code != 200:
continue
print('{} : UPLOAD {}/{}'.format(datetime.strftime(datetime.now(), "%y%m%d %H%M"), chunks_index,
chunks_num), r.text)