crispymtn / crispyfi

Makes music. Loud. https://www.crispymtn.com/stories/let-the-music-play
125 stars 17 forks source link

Uncaught Error: Track not playable #14

Open darren131 opened 9 years ago

darren131 commented 9 years ago

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 commented 9 years ago

Hi – any movement on this, please?

dkoch commented 9 years ago

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 commented 9 years ago

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