reticivis-net / mediaforge

A Discord bot for editing and creating videos, images, GIFs, and more!
GNU General Public License v3.0
81 stars 28 forks source link

No imgur gif support #55

Open Arsham2007 opened 2 years ago

Arsham2007 commented 2 years ago

So i was trying to turn a gif into mp4 but instead gave me this error

DATETIME:2022-02-01 10:42:49.475421 COMMAND:$tomp4 TRACEBACK: Traceback (most recent call last): File "/home/hex/.cache/pypoetry/virtualenvs/mediaforge-4kydknjC-py3.8/lib/python3.8/site-packages/nextcord/ext/commands/core.py", line 168, in wrapped ret = await coro(*args, **kwargs) File "main.py", line 1505, in tovideo await improcess(ctx, improcessing.giftomp4, [["GIF"]]) File "main.py", line 453, in improcess urls = await imagesearch(ctx, len(allowedtypes)) File "main.py", line 305, in imagesearch hm = await handlemessagesave(m) File "main.py", line 258, in handlemessagesave tenor = await fetch( File "/home/hex/Desktop/captionbot/improcessing.py", line 1432, in fetch response.raise_for_status() File "/home/hex/.cache/pypoetry/virtualenvs/mediaforge-4kydknjC-py3.8/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 1004, in raise_for_status raise ClientResponseError( aiohttp.client_exceptions.ClientResponseError: 400, message='Bad Request', url=URL('https://api.tenor.com/v1/gifs?ids=https://imgur.com/OPLGlyW&key=ECYW4F9SR5I6')

reticivis-net commented 2 years ago

It appears to be trying to use the tenor API to access an imgur gif. I haven't yet implemented imgur support, but as long as they have a free API i can do that. I'll change the issue to reflect that