Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.

Uncaught Error: Track not playable #14

Open
darren131 opened this issue May 4, 2015 · 3 comments
Open

Uncaught Error: Track not playable #14

darren131 opened this issue May 4, 2015 · 3 comments

Comments

@darren131
Copy link

Hi there,

First off – great product, thanks for the work :)

This is the issue I've encountered:
/home/pi/crispyfi/lib/spotify_handler.coffee:4352: Uncaught Error: Track not playable

We're based down in New Zealand and I'm guessing if the player hits a song that's been region blocked it throws this error. what would be great is if rather than causing this error it could be caught and simply skip to the next track?

Thanks!
Darren

@darren131
Copy link
Author

Hi – any movement on this, please?

@dkoch
Copy link
Contributor

dkoch commented Jun 10, 2015

Hey,
could you give the skip-on-track-error branch a go?

I haven't immediately found a track that's blocked over here in Germany, so I don't know for sure whether my change fixes your problem, but it just might.

Also, you might want to make sure to not have a playlist full of blocked tracks, otherwise you're in for an endless loop ;)

@darren131
Copy link
Author

Hi,

thanks for that. Just tried to get it going but getting this error:

pi@raspberrypi ~/crispyfi $ node index

/home/pi/crispyfi/node_modules/coffee-script/lib/coffee-script/coffee-script.js:231
      throw helpers.updateSyntaxError(err, stripped, filename);
                    ^
/home/pi/crispyfi/lib/spotify_handler.coffee:169:15: error: unexpected .
      @spotify.player.play @state.track.object

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants