Skip to content

Conversation

@xiaohaoxing
Copy link
Contributor

No description provided.

@xiaohaoxing
Copy link
Contributor Author

Hi, wish you have a good day!

If this fix works, please release a new version package. We have a project relay on this project now and have broken down for this problem. Thanks! 🙏🏻

@xiaohaoxing
Copy link
Contributor Author

It seems that it depends on the proxy I'm using. The origin version works on the US node, but the fix works on the HK, JP, SG nodes. So maybe we need to conditionally sending request to compatible with different region.

@xiaohaoxing xiaohaoxing changed the title fix: get video details. [WIP]fix: get video details. Nov 18, 2024
@SuspiciousLookingOwl
Copy link
Owner

Hi, thanks for the PR.

As far as I know, getting video details fails because the client couldn't get the player data due to the IP of the system being blocked / flagged by YouTube, the raw response of the player endpoint looks like this

{
    responseContext: {
      serviceTrackingParams: [Array],
      maxAgeSeconds: 0,
      mainAppWebResponseContext: [Object],
      webResponseContextExtensionData: [Object]
    },
    playabilityStatus: {
      status: 'LOGIN_REQUIRED',
      reason: 'Sign in to confirm you’re not a bot',
      errorScreen: [Object],
      skip: [Object],
      contextParams: 'Q0FFU0FnZ0M='
    },
    trackingParams: 'CAAQu2kiEwjvtIeEweeJAxUdj9gFHZpcCwY=',
    adBreakHeartbeatParams: 'Q0FBJTNE',
    frameworkUpdates: { entityBatchUpdate: [Object] }
  }

My server is affected by this issue, I tried this fix but unfortunately it doesn't really solve the issue 🙁

Other library like yt-dlp is also facing this issue, I'm still waiting until someone found a solution (yt-dlp/yt-dlp#10128)

@xiaohaoxing
Copy link
Contributor Author

Sorry to hear that. I hove no idea about fixing it currently. Maybe we need more time to find out a stable solution for this problem. My project replace the scrawler with a third-party api now to overcome the problem temporarily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants