Luuk-Dev / YT-Stream

Create easily readable streams from YouTube video url's
MIT License
23 stars 4 forks source link

BUG: You cannot retrieve the duration from restricted videos #4

Closed elektracodes closed 1 year ago

elektracodes commented 1 year ago

e.g. https://www.youtube.com/watch?v=4lzqUe1Qfec

Can I PR this case?

Luuk-Dev commented 1 year ago

As age restricted video's don't provide any data, you are only able to get the data of these video's by setting a cookie of an account that has confirmed their age. You can set this cookie by changing the cookie property to the cookie of the account.