alexeichhorn / YouTubeKit

YouTube video and audio extractor for iOS, watchOS, visionOS, tvOS and macOS
MIT License
206 stars 46 forks source link

How to get streams for age-restricted videos #60

Open rockshassa opened 3 days ago

rockshassa commented 3 days ago

Hi Alex, I am trying to get the streams for a video that is age restricted https://www.youtube.com/watch?v=mRdWT9rAknA&list=EL7O1qbrkMYFejA4FfqsmFVQ&t=81s

This currently fails with the error videoAgeRestricted

Wondering if there is a known way around this error? Would oauth help?

Thank you

alexeichhorn commented 3 days ago

Does the video play for you in the browser? For me, it is just country blocked, but throws videoAgeRestricted anyway. Sometimes videoAgeRestricted comes up as error even though it's actually a different issue. If it works for you, can you tell me your country, so I can vpn to it :)

rockshassa commented 3 days ago

it works in the browser for me (i also see the age restriction warning in browser and can click through it) i’m located in the united states. thanks for looking! 🙏