1
0
Fork 0
mirror of synced 2024-05-20 12:12:40 +12:00

Redgif image fixes

This commit is contained in:
SoulSuck24 2022-09-16 14:47:55 -04:00
parent e0a36f4eab
commit 0a9ecac410

View file

@ -45,9 +45,7 @@ class Redgifs(BaseDownloader):
elif response_json['gif']['type'] == 2: # type 2 is an image
if response_json['gif']['gallery']:
content = Redgifs.retrieve_url(
f'https://api.redgifs.com/v2/gallery/{response_json["gif"]["gallery"]}',
headers=headers,
)
f'https://api.redgifs.com/v2/gallery/{response_json["gif"]["gallery"]}')
response_json = json.loads(content.text)
out = {p['urls']['hd'] for p in response_json['gifs']}
else: