Kethsar / ytarchive

Garbage Youtube livestream downloader
MIT License
1.08k stars 87 forks source link

Do not stop recording if a live stream gets Age-Restricted mid-stream #74

Closed cornbreadman closed 2 years ago

cornbreadman commented 2 years ago

During a recording, I noticed that only about half of the live stream was recorded when it was finished. The live stream did get age-restricted mid-stream. would having a cookies.txt help with age-restricted videos/streams?

Kethsar commented 2 years ago

Age restricted? That's funny. Using a cookies file might have helped, but if you are in the EU then you have to go through some bs to get around it regardless. I typically recommend using a cookies file regardless as it helps with some stuff. Aside from that, this is probably a similar issues to #68 and I do plan to fix stopping mid-stream when it shouldn't. At least if the stream doesn't continue beyond 6 hours.

cornbreadman commented 2 years ago

I'm in the US. Most of my live streams I record do not encounter this problem, but sadly, one of them did.

Kethsar commented 2 years ago

Yeah, it's not something I've encountered before either. But in that case yes, a cookies file should have helped with continuing the download, much in the same way they are required for downloading age-restricted videos with yt-dlp. Unless they found a way around it again.

cornbreadman commented 2 years ago

I added the cookies.txt, but hard trying to find a live stream to test this on atm.

cornbreadman commented 2 years ago

cookies.txt file solves that issue. Can Close Issue (please look at other issue #52)