web-scrobbler / web-scrobbler

Scrobble music all around the web!
https://web-scrobbler.com
MIT License
2.47k stars 550 forks source link

Unable to scorbble from Youtube #1955

Closed fixator10 closed 5 years ago

fixator10 commented 5 years ago

Scrobbling from youtube does nothing

Expected behavior

Scrobble music from Youtube

Current behavior

Absolutely nothing happens due to 403 youtube API error: youtube.js:210 GET https://www.googleapis.com/youtube/v3/videos?part=snippet&id=hSyfPujR5tg&key=%APIKEYHERE% 403

{
  "error": {
    "errors": [
      {
        "domain": "usageLimits",
        "reason": "dailyLimitExceeded",
        "message": "Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT). You may monitor your quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/youtube.googleapis.com/quotas?project=265200169229",
        "extendedHelp": "https://console.developers.google.com/apis/api/youtube.googleapis.com/quotas?project=265200169229"
      }
    ],
    "code": 403,
    "message": "Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT). You may monitor your quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/youtube.googleapis.com/quotas?project=265200169229"
  }
}

Possible solution

add more API keys or make possiblity to setup own API keys

Steps to reproduce (for bugs)

  1. Visit any youtube music video page, i.e.: https://www.youtube.com/watch?v=cUbFzEMQ2F
  2. Check console

Steps for resolving the issue

Environment

TigermaskV commented 5 years ago

i have the same but from every were that is not Spotify yes tried very site backed by the web scrobbler and only spotify works for me not even the ultimate srobleer site to gain back lost scrobbles workers and add only or three hours between 6 and 9 am tp]o day has even the desktop scrobbler worked and i have ven tried all steps in every place

that is on chrome latest version and four other chromium based browers

alexesprit commented 5 years ago

I moved some workaround back, and now the connector should do requests less frequently. Of course, we need to wait until quotas for all keys are reset.

alexesprit commented 5 years ago

Does YT scrobbling work fine after the update?

fixator10 commented 5 years ago

Seems to be

alexesprit commented 5 years ago

Ok. I close this issue. Feel free to reopen it again.

fixator10 commented 5 years ago

It happens again ¯\_(ツ)_/¯

youtube.js:211 {
  "error": {
    "errors": [
      {
        "domain": "usageLimits",
        "reason": "dailyLimitExceeded",
        "message": "Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT). You may monitor your quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/youtube.googleapis.com/quotas?project=265200169229",
        "extendedHelp": "https://console.developers.google.com/apis/api/youtube.googleapis.com/quotas?project=265200169229"
      }
    ],
    "code": 403,
    "message": "Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT). You may monitor your quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/youtube.googleapis.com/quotas?project=265200169229"
  }
}
22:07:56.762 youtube.js:220 Failed fetching category with AIzaSyCKvCjUgu4jJizhXd7Cxb1rU2cem83v4Uc
22:07:56.762 youtube.js:191 Failed to resolve category for dyVbjuyI9PE

I cant reopen issue, because it closed by repo owner

RaylaLe100 commented 5 years ago

I have a similar error, and I'm unable to scrobble from youtube while other websites such as bandcamp work fine. Here's the "error" written in the "console" part, if it can help you :

Web Scrobbler: Setup "timeupdate" event listener youtube.js:246:4
Web Scrobbler: Connector.playerSelector is empty. The current connector is expected to manually detect state changes starter.js:68:3
{
  "error": {
    "errors": [
      {
        "domain": "usageLimits",
        "reason": "dailyLimitExceeded",
        "message": "Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT). You may monitor your quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/youtube.googleapis.com/quotas?project=97339196523",
        "extendedHelp": "https://console.developers.google.com/apis/api/youtube.googleapis.com/quotas?project=97339196523"
      }
    ],
    "code": 403,
    "message": "Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT). You may monitor your quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/youtube.googleapis.com/quotas?project=97339196523"
  }
} youtube.js:211:5
Failed fetching category with AIzaSyA3VNMxXEIr7Ml3_zUuzA7Ilba80A657KE youtube.js:220:4
{
  "error": {
    "errors": [
      {
        "domain": "usageLimits",
        "reason": "dailyLimitExceeded",
        "message": "Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT). You may monitor your quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/youtube.googleapis.com/quotas?project=680820431034",
        "extendedHelp": "https://console.developers.google.com/apis/api/youtube.googleapis.com/quotas?project=680820431034"
      }
    ],
    "code": 403,
    "message": "Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT). You may monitor your quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/youtube.googleapis.com/quotas?project=680820431034"
  }
} youtube.js:211:5
Failed fetching category with AIzaSyAUtMnIXmhoGDZw1xSNfIb-aGehbrbdD-0 youtube.js:220:4
{
  "error": {
    "errors": [
      {
        "domain": "usageLimits",
        "reason": "dailyLimitExceeded",
        "message": "Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT). You may monitor your quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/youtube.googleapis.com/quotas?project=265200169229",
        "extendedHelp": "https://console.developers.google.com/apis/api/youtube.googleapis.com/quotas?project=265200169229"
      }
    ],
    "code": 403,
    "message": "Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT). You may monitor your quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/youtube.googleapis.com/quotas?project=265200169229"
  }
} youtube.js:211:5
Failed fetching category with AIzaSyCKvCjUgu4jJizhXd7Cxb1rU2cem83v4Uc youtube.js:220:4
Failed to resolve category for 9nLKmxjrJTs

Still a category problem apparently, even if I allowed every category scrobble in the options.

Should we make another issue or can someone re-open this one?

alexesprit commented 5 years ago

Really don't know what to do with limits. We have 3 keys, and it's still not enough.

alexesprit commented 5 years ago

@inverse I just found out the second key I added has 10k day limit. Can you check the daily quota number for the third key you added?

image

inverse commented 5 years ago

Same - mine is at 10k too. Currently served 61M requests apparently. I guess we need more keys , move away from an API driven approach, or just pay for more quota which I'd rather not ;)

alexesprit commented 5 years ago

More keys is not an option. We need about more 300 keys to just get double limit (3mil. + 300x10000=6 mil.).

I also don't like the idea of user-defined API keys. It's not an user-friendly feature and does not resolve the issue.

inverse commented 5 years ago

Def sounds like we're hitting limits. Also saw on analytics we're blowing up our usage and should be careful.

User defined keys could be a way to go, especially if we document the process, but like you said def isn't user friendly. Aside moving away from API driven, what else is there?

Rushwheel commented 5 years ago

I have the same problem.

code-ink-space commented 5 years ago

I miss scrobbling from youtube. :(

Zebedeerox commented 5 years ago

YouTube seemingly gone, now MixCloud and Discogs also not recognising media (Chrome) Desktop client showing notifications from web, but not registering on Lastfm profile. MusicBee is about all that's working for me, and that's 100% accurate. Shame. This was a great extension.

stephanebruckert commented 5 years ago

@inverse @alexesprit do we just need the YT API to fetch thecategoryId?

https://github.com/web-scrobbler/web-scrobbler/blob/master/src/connectors/youtube.js#L205

Can't we retrieve/translate the category of the video from the HTML?

alexesprit commented 5 years ago

Can't we retrieve/translate the category of the video from the HTML?

We can, but It's language-dependent and it's harder to parse.

stephanebruckert commented 5 years ago

We can use the Google Translate API 🤡

Kidding. If we fetch and store a static list of ~250 translations for "Music" once and for all, we are done! YT API seems to have all the region, language and category endpoints that we need.

or we could rely on an existing list such as:

shashank-ssriva commented 5 years ago

SoundCloud doesn't work either.

Zebedeerox commented 5 years ago

I removed the extension from Chrome, it began to work for a wee while, then got the "A service error occurred" message, again. And you're right, @shashank-ssriva - it's the same for SoundClound. I'm beginning to wonder if this is more to do with ongoing copyright issues and the platforms are changing the way APIs can fetch data. Maybe. But even desktop scrobbles are not uploading to the user's profile, so maybe not. I've given up worrying about it and am just enjoying the music.

alexesprit commented 5 years ago

I understand you guys you cannot scrobble tracks from your favourite websites. But it does not mean you should post it in non-related topics. There's another issue for SoundCloud, where I asked for logs, but no one is interested in resolving the issue.

As for this issue, we know about it and have all information we need. I lock this one.