Fix some gfycat URLs
This commit is contained in:
parent
713b2250bc
commit
40470bc6d7
|
@ -393,7 +393,7 @@ async def main():
|
||||||
if url:
|
if url:
|
||||||
url = urlunparse(parsed)
|
url = urlunparse(parsed)
|
||||||
elif domain == 'gfycat.com':
|
elif domain == 'gfycat.com':
|
||||||
async with session.get(f'https://api.gfycat.com/v1/gfycats/{parsed[2]}') as resp:
|
async with session.get(f'https://api.gfycat.com/v1/gfycats/{splitted[0]}') as resp:
|
||||||
apidata = await resp.json()
|
apidata = await resp.json()
|
||||||
gfyitem = apidata.get('gfyItem')
|
gfyitem = apidata.get('gfyItem')
|
||||||
if gfyitem:
|
if gfyitem:
|
||||||
|
|
Loading…
Reference in New Issue