dylanpdx / BetterTwitFix

Fix Twitter video embeds in Discord (and Telegram!)
Do What The F*ck You Want To Public License
1.18k stars 46 forks source link

Downloading doesn't work from video URLs #213

Open aubymori opened 4 months ago

aubymori commented 4 months ago

Opening a direct video link (e.g. https://vxtwitter.com/tetosteronee/status/1796044981439705437.mp4) will redirect it to the Twitter video, but then attempting to save the video from there will attempt to download the video from the aforementioned vxtwitter URL, which doesn't work. My current fix for this is to copy the URL from the address bar and manually open it in a new tab, but this is kind of annoying to do. This only happens on Firefox for me, not Chrome. Any chance you could change the method of redirecting to not cause this?

aubymori commented 4 months ago

Screenshot, by the way. Screenshot_20240530-081703

dylanpdx commented 4 months ago

I've been looking into this but I'm not sure of a way to fix it, since all redirect methods seem to result in the issue. A workaround is to tap on the address bar and submit it, and THEN downloading the video

aubymori commented 2 months ago

I've been looking into this but I'm not sure of a way to fix it, since all redirect methods seem to result in the issue. A workaround is to tap on the address bar and submit it, and THEN downloading the video

Old issue that I completely forgot about until now, but maybe you could look at the HTTP Accept header between the two requests (initial vxtwitter visit vs. downloading video). Hopefully they will differ.