forked from rDrama/rDrama
jdjufrw
parent
ecae04bc64
commit
a3d090dfbd
|
@ -104,6 +104,7 @@ def upload_video(file):
|
||||||
with open(file_path, 'rb') as f:
|
with open(file_path, 'rb') as f:
|
||||||
try:
|
try:
|
||||||
r = requests.post('https://api.imgur.com/3/upload', headers=headers, files={"video": f})
|
r = requests.post('https://api.imgur.com/3/upload', headers=headers, files={"video": f})
|
||||||
|
|
||||||
print(r.text)
|
print(r.text)
|
||||||
#r.raise_for_status()
|
#r.raise_for_status()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue