Skip to content

Get Video ID from DOM - #313

Draft
rthaut wants to merge 2 commits into
masterfrom
live-urls
Draft

Get Video ID from DOM#313
rthaut wants to merge 2 commits into
masterfrom
live-urls

Conversation

@rthaut

@rthaut rthaut commented Nov 20, 2020

Copy link
Copy Markdown
Owner

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