forked from rDrama/rDrama
master
parent
e733e7aee3
commit
5ddf34a48e
|
@ -538,11 +538,12 @@ def check_processing_thread(post, link, db):
|
|||
time.sleep(15)
|
||||
|
||||
image_id = link.split('/')[-1].rstrip('.mp4')
|
||||
print(f"request https://api.imgur.com/image/{image_id}")
|
||||
|
||||
headers = {"Authorization": f"Client-ID {IMGUR_KEY}"}
|
||||
req = requests.get(f"https://api.imgur.com/image/{image_id}", headers=headers)
|
||||
|
||||
print(req.text)
|
||||
#print(req.text)
|
||||
|
||||
|
||||
@app.post("/submit")
|
||||
|
|
Loading…
Reference in New Issue