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

Match params for unlisted videos #43

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

xipasduarte
Copy link
Contributor

  • Increase regex matching to include h parameter value.
  • Add h parameter to the video URL when present.

- Increase regex matching to include h parameter value.
- Add h parameter to the video URL when present.
Copy link

vercel bot commented Oct 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
media-elements-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 18, 2024 5:03pm

@xipasduarte
Copy link
Contributor Author

This should solve issue #30. I changed the regex a little, from what was proposed, to account for how Vimeo expects the second part of the ID to be passed. They call it the h parameter, but I've yet to find what it stands for (maybe hash?).

I didn't change the tests, but I can look into duplicating the existing ones, because they should all work. Let me know if you have any ideas or need any further changes.

Copy link
Collaborator

@luwes luwes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! thanks for the contribution

@luwes luwes merged commit fc5ab4a into muxinc:main Oct 24, 2024
4 checks passed
luwes pushed a commit that referenced this pull request Nov 6, 2024
- Increase regex matching to include h parameter value.
- Add h parameter to the video URL when present.
@github-actions github-actions bot mentioned this pull request Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants