Xyphyn / photon

A replacement for lemmy-ui with more features, a better design, and more customizability.
https://phtn.app
GNU Affero General Public License v3.0
366 stars 40 forks source link

Photon wrongly detects post as video #454

Open poVoq opened 1 week ago

poVoq commented 1 week ago

Could you have a look why Photon thinks this post should have a video preview: https://slrpnk.net/post/13629299

https://photon.slrpnk.net/post/slrpnk.net/13629299

The link does not contain any video, only some images.

Thanks!

Xyphyn commented 1 week ago

This is kinda funny. I messed up the regex and it will detect mov,mp4,mkv,webm anywhere in the url. so movim is getting detected

Xyphyn commented 1 week ago

Lemmy recently updated the post data to have url_content_type which makes it so that i dont have to check the url manually. Once most instances are on v0.19.5 i'll switch to that