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: