Dobby233Liu / bembedfix

修复 bilibili 视频链接的 embed 在 Discord 上的显示效果
https://bembedfix.vercel.app
MIT License
4 stars 0 forks source link

Alternative Embedding Method #33

Open Ecstaticoder opened 2 months ago

Ecstaticoder commented 2 months ago

This is just some alternative method for embedding the videos. Using https://embed.works/ before a BiliBili link allows the video to be embedded. (You can try this yourself, if it doesn't work wait a bit then remove or add a "/" at the end of the link) image It works by grabbing a direct link to the video to embed, if that doesn't work it downloads the video and then hosts it on a server.

Here's a link to the repository. https://github.com/jemand771/embed.works

Dobby233Liu commented 2 months ago

Plausible

Dobby233Liu commented 2 months ago

It would be funny if I rely on cobalt.tools for the video URL (#34)

Can't just hotlink from acgvideo because there are prevention mechanisms... except only now I notice it says its dropped if I pass html5 as the platform, still risky though

Ecstaticoder commented 2 months ago

Hmm, so temporary hosting seems to be the only solution then. Right?

Dobby233Liu commented 2 months ago

Temporary hosting is probably the best but is out of scope for this project