live-dl
live-dl copied to clipboard
Passing cookie to monitor Youtube page
Would it be possible to pass a (youtube) cookie to curl in order to monitor potential private live streams (restricted to paying members for example)?
From the git logs I noticed there was a "cookie" argument at some point but got removed?
I know it's possible to pass cookie to youtube-dl from #3 but is it supposed to work for monitoring?
Sorry if I sound a bit confused, just tried fiddling with the script but got nowhere so far, my $METADATA_CURL_RAW
is empty due to some parsing error. Still investigating.
Edit: actually my question probably entails more work than I anticipated, since the private streams never appear on the channel/live
endpoint, only in the channel/community
one.
It occurs to me that youtube-dl should be able to do that already, especially by using the download-archive
feature which keeps track of new videos from a playlist.
Some membership stream are no archived (Karaoke, Sing or Minecraft) and this will not automatically update/ appear in Member-only video
playlist. So get link from playlist is not helpful.
I wrote my own script to monitor a (Youtube) channel and download live stream. It monitors both channel/community
and channel/videos
endpoints for active live streams.
Technically you have to monitor /community
for member-only content. I don't have enough samples and time to catch this type of videos.
The current workaround is getting the video ID manually or you can try @glubsy's solution.