rasguanabana / ytfs

YouTube File System
MIT License
1.1k stars 45 forks source link

YouTube Data API v3 Key is Unconfigured #31

Closed Horb closed 4 years ago

Horb commented 4 years ago

In ytfs.YTActions.__search the self.api_keyis used to query the YouTube Data API v3.

The current API Key is un-configured. The request results in a 403 response;

{
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "accessNotConfigured",
    "message": "Access Not Configured. YouTube Data API has not been used in project 711560230058 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=711560230058 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
    "extendedHelp": "https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=711560230058"
   }
  ],
  "code": 403,
  "message": "Access Not Configured. YouTube Data API has not been used in project 711560230058 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=711560230058 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."
 }
}

I see two options;

Horb commented 4 years ago

Thank you for the merge!