ZeroQI / YouTube-Agent.bundle

Plex Metadata Agent for Movies and TV Series libraries
452 stars 43 forks source link

Help on API_KEY #96

Closed glensc closed 2 years ago

glensc commented 2 years ago

The readme is not much helpful:

[!] register your own API key and also replace API_KEY='AIzaSyC2q8yjciNdlYRNdvwbb7NEcDxBkv1Cass' in ass code and the agent setting [Agent_youtube_api_key] OR you will deplete the quota of requests in MY account and metadata will stop for ALL users using default settings.

Questions:

  1. how to register API key, should give instructions like other tasks
  2. what is "ass code"?
ZeroQI commented 2 years ago

1) Google it, it has nothing to do with the agent and can be easily found 2) Absolute Series Scanner. For this agent, you can now put it in agent settings instead

glensc commented 2 years ago

Sent you some motivation, can you write the youtube API key creation instructions?

I think the journey starts from here:

glensc commented 2 years ago

From past experience, I think it involves creating a project and then an API token can be attached to the project. are there scopes one should be aware of then creating token?

For example (past experience) https://rclone.org/drive/:

  1. Create a service account for example.com
  • To create a service account and obtain its credentials, go to the Google Developer Console.
  • You must have a project - create one if you don't.
  • Then go to "IAM & admin" -> "Service Accounts".
  • Use the "Create Credentials" button. Fill in "Service account name" with something that identifies your client. "Role" can be empty.
  • Tick "Furnish a new private key" - select "Key type JSON".
  • Tick "Enable G Suite Domain-wide Delegation". This option makes "impersonation" possible, as documented here: Delegating domain-wide authority to the service account
  • These credentials are what rclone will use for authentication. If you ever need to remove access, press the "Delete service account key" button.
glensc commented 2 years ago

Similar issue (duplicate):

ZeroQI commented 2 years ago

This link was previously given and seem the easiest to follow https://rapidapi.com/blog/how-to-get-youtube-api-key/