diff --git a/files/routes/posts.py b/files/routes/posts.py index 33a0a24cf..91a0d78b6 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -538,12 +538,11 @@ 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) + req = requests.get(f"https://api.imgur.com/3/image/{image_id}", headers=headers) - #print(req.text) + print(req.text) @app.post("/submit")