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

Get Video ID from DOM #313

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Get Video ID from DOM #313

wants to merge 2 commits into from

Conversation

rthaut
Copy link
Owner

@rthaut rthaut commented Nov 20, 2020

This PR adds logic to get the Video ID from the DOM when the ID cannot be parsed from the <video> element or from the window.location.

Currently this only checks the "canonical" and "shortlinkUrl" <link> tags, but those are probably the most reliable, since they are common best practices and are not really subject to DOM structure changes.

@rthaut rthaut linked an issue Nov 20, 2020 that may be closed by this pull request
@rthaut rthaut marked this pull request as draft November 20, 2020 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Does not work with "/live" youtube URLs
1 participant