alexeichhorn / YouTubeKit

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

How to get streams for age-restricted videos #60

Open rockshassa opened 2 weeks ago

rockshassa commented 2 weeks 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 2 weeks 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 2 weeks 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! 🙏

alexeichhorn commented 2 weeks ago

Couldn't replicate it via VPN unfortunately. Sorry. Video is still blocked for me. Does it work if you use methods: [.remote] instead?