Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
YouTube - Treat YouTube URLs of the format `/[user/]<username>/live` as live videos and not playlists if the channel is live #8959
Comments
|
It still doesn't cover URLs that omit the |
YouTube URLs of the format
https://www.youtube.com/user/<username>/liveorhttps://www.youtube.com/<username>/liveshould be treated as live videos instead of playlists if the channel is streaming live. Currently, these URLs are being treated as playlists regardless of whether the channel is streaming live. These URLs are useful for referencing the channel's current live stream without having to manually find the video ID for the live stream, which changes each time the channel starts a new live stream.The page returned by YouTube when the channel is live appears to be identical to the page returned with the
watch?v=...URL for the same live content; in fact, the latter URL is the value of the page's canonical meta tag. When the channel is not live, I've seen the page returned be either the channel's home page or a video page saying that the stream is offline. In all cases, there is no redirect except for minor fixups like addinguser/if it's missing.Example URLs: