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.
How to get current livestream from a channel? #12766
Comments
|
No way to get current live stream then. Parse it from channel page on your own. |
Using channel/$channel_id/live doesn't work for all channels.
Example:
https://www.youtube.com/channel/UCj6PcyLvpnIRT_2W_mwa9Aw/live
Actual live id: https://www.youtube.com/watch?v=0tek2aa8hAQ
I tried:
youtube-dl -f "best" --get-id --get-title --max-downloads 1 --match-title "en directo" https://www.youtube.com/channel/UCR9120YBAqMfntqgRTKmkjQ
But the livestream video isn't always the latest one. Maybe a boolean isLive variable to use with --match-title?