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

Fix 403 "Access Denied" for encrypted videos #199

Merged
merged 3 commits into from
Jun 22, 2021
Merged

Fix 403 "Access Denied" for encrypted videos #199

merged 3 commits into from
Jun 22, 2021

Commits on Jun 22, 2021

  1. Turns out, request without playbackContext and, in particular,signatu…

    …reTimestamp always lead to 403 "Access Denied" after decrypting signature. This value seems like doesn't change too often, so temporarily hard-coding it just to fix problem as soon as possible. But later need to fetch it from youtube.
    
    Also browser metadata isn't mandatory for request, instead its better to specify language so server responses always be same
    Camelva committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    ef58cc0 View commit details
    Browse the repository at this point in the history
  2. moving part about fetching player config to separate function because…

    … we need to re-use it.
    
    Also declaring additional error for cases when we couldn't find sts
    Camelva committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    ab72fd5 View commit details
    Browse the repository at this point in the history
  3. using real sts instead of hard-coded.

    Also changing function signature because we need context now
    Camelva committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    d542ea7 View commit details
    Browse the repository at this point in the history