Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Photon wrongly detects post as video #454

Open
poVoq opened this issue Sep 24, 2024 · 2 comments
Open

Photon wrongly detects post as video #454

poVoq opened this issue Sep 24, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@poVoq
Copy link
Contributor

poVoq commented Sep 24, 2024

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!

@poVoq poVoq added the bug Something isn't working label Sep 24, 2024
@Xyphyn
Copy link
Owner

Xyphyn commented Sep 25, 2024

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
Copy link
Owner

Xyphyn commented Sep 25, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants