live-dl icon indicating copy to clipboard operation
live-dl copied to clipboard

Passing cookie to monitor Youtube page

Open glubsy opened this issue 3 years ago • 3 comments

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.

glubsy avatar Jan 16 '21 05:01 glubsy

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.

herowinb avatar Jan 20 '21 12:01 herowinb

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.

glubsy avatar Apr 22 '21 14:04 glubsy

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.

sparanoid avatar Apr 24 '21 16:04 sparanoid