Fix some gfycat URLs
This commit is contained in:
parent
713b2250bc
commit
40470bc6d7
|
@ -393,7 +393,7 @@ async def main():
|
|||
if url:
|
||||
url = urlunparse(parsed)
|
||||
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()
|
||||
gfyitem = apidata.get('gfyItem')
|
||||
if gfyitem:
|
||||
|
|
Loading…
Reference in New Issue