Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

livestream_saver does not handle age-restricted videos correctly #49

Open
mechalincoln opened this issue Oct 25, 2022 · 14 comments
Open
Labels
bug Something isn't working

Comments

@mechalincoln
Copy link

Hey. This app worked for a long time, but the streamer I watch started to change his streams to age-restricted, and now livestream_saver no longer works.

I have included a gif showing what happens, even after providing correct login credentials.
livestream_saver_issue

Please look into why livestream_saver is not handling age restricted streams.

Thank you.

@glubsy
Copy link
Owner

glubsy commented Oct 25, 2022

Thanks for reporting.

I believe there is no other way than providing cookies of a logged-in session in order to work around this issue. You can do so with the --cookies flag on the command line, or in the config file. Cookies should be formatted in Netscape format (as in most cases).

It's actually mentioned in the top part of the README.md file. ;)

Non logged-in users are most likely blocked from accessing age restricted videos.

@glubsy glubsy added the wontfix This will not be worked on label Oct 25, 2022
@mechalincoln
Copy link
Author

I did that, and this is what still happens.

@mechalincoln
Copy link
Author

Even with a formatted Netscape cookies file, it will do this.

@glubsy
Copy link
Owner

glubsy commented Oct 25, 2022

Can you share the channel Identifier or at least its name so that I try to test that out?

@mechalincoln
Copy link
Author

Thank you.

The channel ID is UCeajjc71kLsu9hVDkFvRHjg

He streams randomly, which is why I need this service.

FYI it's prank calls and lots of cussing, so not the most important thing, but something fun.

@glubsy
Copy link
Owner

glubsy commented Oct 25, 2022

Can you confirm you can view the live streams with your logged-in account? Perhaps your account is blocked for whatever reason.

I'll monitor that channel for a while and keep an eye for that error.

@mechalincoln
Copy link
Author

Yes, I can confirm that I can view them with my logged in account.

Thank you again.

@mechalincoln
Copy link
Author

mechalincoln commented Oct 27, 2022

I think he's on now but age restriction is not enabled, so the script is currently working. If it does come on I'll let you know.

@mechalincoln
Copy link
Author

mechalincoln commented Oct 27, 2022

He made that video age-restricted after awhile.

The script is erroring out like in the gif now.

@glubsy glubsy added bug Something isn't working and removed wontfix This will not be worked on labels Oct 27, 2022
@glubsy
Copy link
Owner

glubsy commented Oct 27, 2022

Indeed I managed to reproduce the bug. I got 2 hours of the last stream (id was kwVwhylnMsk) and I assume it was not over when the recording stopped.

That will require some investigation and some work.
For now what I suggest is trying to record with yt-dlp and see if that solves your problem (they might have implemented a workaround for the age restriction). You can spawn yt-dlp automatically if you follow the README.md carefully. Just don't forget to provide your session cookies to it just in case they are required to bypass the age restriction.

@mechalincoln
Copy link
Author

Understood.

Thank you again for investigating. 😃

@mechalincoln
Copy link
Author

On a somewhat unrelated note, livestream_saver is not currently detecting any videos either for that or another channel I watch, both of which have several videos.
livestream_saver102822

I know that youtube has been screwing around with their interface lately, so that may be why.

@mechalincoln
Copy link
Author

It's currently showing zero videos for both, when I know there are many more than zero videos for each.

@glubsy
Copy link
Owner

glubsy commented Oct 29, 2022

This is a separate issue that has been reported in #50 already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants