Browse Source

Fix some gfycat URLs

master
blank X 8 months ago
parent
commit
40470bc6d7
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
  1. 2
      redditbot.py

2
redditbot.py

@ -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…
Cancel
Save