-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Track is not playable in country #90
Comments
So it works with vanilla Node.js but doesn't work in node-webkit? |
As far as I can tell, yes. |
/cc @rogerwang perhaps? (I'm not too experienced with node-webkit) |
Spotify Track 7H2fsBhT608o7R6lsfZ2gJ |
Have there been any updates on whether or not this would work? |
I've tracked the bug down to |
It is because of a bug in protobufjs I think: the catalogue enum is not mapped to it's string values. |
@dralletje i noticed a small issue in your fix in that it kept trying to map undefined values. I have created #110 which has a fix that works for me |
FYI, this last fix actually broke the functionality on my machine. Rolling back fixes it. |
@antxxxx I've tried your fix, and didn't work for me. :( |
just replace this function in lib/spotify.js with this: Spotify.prototype.recurseAlternatives = function (track, country, fn) { this bypasses the buggy "check country" code |
If a try to play a track (no matter which track it is), I receive the following error:
I'm using nodewebkit ("classic" NodeJS worked just fine). And yes, the song is playable in my country (Tried the tracks with Desktop Client & Web Client).
The text was updated successfully, but these errors were encountered: