forked from MarseyWorld/MarseyWorld
jdijefjoirw
parent
de2f1315c9
commit
9996699188
|
@ -104,7 +104,8 @@ def upload_video(file):
|
|||
with open(file_path, 'rb') as f:
|
||||
try:
|
||||
r = requests.post('https://api.imgur.com/3/upload', headers=headers, files=[], data={"video": f})
|
||||
r.raise_for_status()
|
||||
print(r.text)
|
||||
#r.raise_for_status()
|
||||
|
||||
resp = r.json()['data']
|
||||
except requests.HTTPError as e:
|
||||
|
|
Loading…
Reference in New Issue