hallzy / youtube-playlist-search

A Chrome Extension to search Youtube Playlists for Videos
71 stars 7 forks source link

Extension not working #4

Closed ac4man closed 3 years ago

ac4man commented 3 years ago

When I click on the extension it makes me log in to my Google account, when I type something into either the "channel filter" or "search this playlist" nothing comes up. When I click on the extension again it prompts me to log in to my Google account again, and the cycle continues.

hallzy commented 3 years ago

You have to login to a google account to use it.

The extension uses the YouTube API provided by Google, and the extension need an auth token from google to perform API requests. The extension can only get the token if you give google permission to give that to the extension.

The token that the extension gets from google only gives the extension readonly access to the youtube api per the manifest file:

  "oauth2": {
    "scopes": [
      "https://www.googleapis.com/auth/youtube.readonly"
    ]
  },