Seklfreak / discord-image-downloader-go

A simple tool which downloads pictures posted in discord channels of your choice to a local folder.
MIT License
350 stars 90 forks source link

Gfycat API endpoint changed #120

Closed Kakkela closed 5 years ago

Kakkela commented 5 years ago

Gfycat has finally deprecated their old API endpoint that this downloader was also using. Instead of

https://gfycat.com/cajax/get/

it should now use

https://api.gfycat.com/v1/gfycats/

I quickly just tested swapping the new url in but it wasnt very succesfull and bot still isnt downloading Gfycats. Maybe you have time to look into it soon.

Error message that initiated me to investigate into this was following: putty_2018-11-28_16-11-50

Kakkela commented 5 years ago

Tried to tinker my way around this problem without much go knowledge, seems to work with url replacement on some platforms. Built exact same source on Windows and Rasbian, but only Windows works.

Kakkela commented 5 years ago

Built the modified source on Windows for ARM Linux and it works fine, if I build it on the Linux itself it wont work. Someone more educated with Go could probably explain why this happens.

Seklfreak commented 5 years ago

fixed in https://github.com/Seklfreak/discord-image-downloader-go/releases/tag/v1.31.3