-
Notifications
You must be signed in to change notification settings - Fork 9.1k
fix: Clarify YouTube API key(YouTube Data API v3 enable) requirement for live route #20974
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: Clarify YouTube API key(YouTube Data API v3 enable) requirement for live route #20974
Conversation
…am-route Clarify YouTube API key(YouTube Data API v3 enable) requirement for live route
|
Successfully generated as following: http://localhost:1200/youtube/live - Failed ❌ |
|
Successfully generated as following: http://localhost:1200/youtube/live - Failed ❌ |
Updated the description for the YOUTUBE_KEY configuration to include a link to the YouTube Data API v3.
|
Successfully generated as following: http://localhost:1200/youtube/live - Failed ❌ |
|
Successfully generated as following: http://localhost:1200/youtube/live/@weathernews - Failed ❌ |
|
can not use YOUTUBE_KEY for action? |
|
I don't think people will use API key with YouTube analytics/reporting API. Regarding YouTube Data API v2, it was deprecated well before RSSHub exists. |
|
Yes, I updated the URL to https://console.cloud.google.com/apis/library/youtube.googleapis.com. This makes it easier for users to enable the YouTube Data API v3.
If the API is not enabled, the route fails as shown below.
Reason: This error occurs in /lib/routes/youtube/live.ts at line 64 because the data retrieved via utils.getLive (at line 58) returns null when the API is disabled. |



Involved Issue / 该 PR 相关 Issue
Close #
Example for the Proposed Route(s) / 路由地址示例
New RSS Route Checklist / 新 RSS 路由检查表
PuppeteerNote / 说明
Clarify YouTube API key(YouTube Data API v3 enable) requirement for live route in document.