doieijfdiw
This commit is contained in:
parent
d46bddfa8f
commit
3e3926b751
1 changed files with 1 additions and 1 deletions
|
@ -537,7 +537,7 @@ def check_processing_thread(post, link, db):
|
||||||
print("spawn checking thread")
|
print("spawn checking thread")
|
||||||
time.sleep(15)
|
time.sleep(15)
|
||||||
|
|
||||||
image_id = link.split('/')[-1]
|
image_id = link.split('/')[-1].rstrip('.mp4')
|
||||||
|
|
||||||
headers = {"Authorization": f"Client-ID {IMGUR_KEY}"}
|
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/image/{image_id}", headers=headers)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue