Fix some gfycat URLs

This commit is contained in:
blank X 2021-11-18 01:19:10 +07:00
parent 713b2250bc
commit 40470bc6d7
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 1 additions and 1 deletions

View File

@ -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: