musiqpad / mqp-server

NodeJS server base for hosting an individual pad
MIT License
30 stars 18 forks source link

Youtube search does not work #15

Closed Tonysp closed 8 years ago

Tonysp commented 8 years ago

When trying to search for a song, it does nothing. One line in server console: [2016-03-31 22:23:55] SocketServer (debug) 147.32.120.95 sent: {"type":"youtubeSearch","data":{"query":"test"},"id":7}

And few errors in Chrome client console: err

Also, i have SSL disabled.

explodingcamera commented 8 years ago

Errors are normal, they happen because of adblock/YouTube player.

foodbandlt commented 8 years ago

Yep, as said above those are normal. Is there anything else in the server console that indicates why the search failed? Have you input an API key for YouTube in the serverconfig?

Tonysp commented 8 years ago

I tried it in Firefox without any extensions and it still doesn't work, neither in Chrome incognito mode. And no, nothing in server console except the line i posted before.

DerpgonCz commented 8 years ago

@Tonysp No errors indicating why the YouTube search would fail

Make sure your YT API key is set as "Server key" in your Google Developer Console and you have it set in your serverconfig.js files aswell. Also make sure you have the latest version of musiqpad

Tonysp commented 8 years ago

Solved... I was using Browser key instead of Server key. You should specify which key to use in the example config so it doesn't happen to someone else. Thanks for the help!