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. |
… for live route (DIYgod#20974) * Add CLI script for youtube live lookup * Make youtube live debug script standalone * Update YouTube API key requirement docs * Clarify YouTube API key requirement for live route * Adjust YouTube live API key docs * Enhance YOUTUBE_KEY description with API link Updated the description for the YOUTUBE_KEY configuration to include a link to the YouTube Data API v3. * Update youtube Data API v3 enable doc url
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |



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.