A flask server that fixes twitter embeds in discord

TwitFix

very basic flask server that fixes twitter embeds in discord by using youtube-dl to grab the direct link to the MP4 file and embeds the link to it in a custom page, with link caching

This does work! but I’m new to flask, so it can probably be improved a great deal.

How to use (discord side)

just put the url to the server, and directly after, the full URL to the tweet you want to embed

I now have a copy of this running on a Linode server, you can use it via the following url

https://fxtwitter.com/

You can also simply type out ‘fx’ directly before ‘twitter.com’ in any valid twitter video url, and that will convert it into a working TwitFix url, for

 

 

 

To finish reading, please visit source site