streamkeys: Spotify doesn't work

The spotify web player no longer works. I was using it a few days ago and it appeared to work fine, but suddenly it just stopped working. Neither the key bind nor the button in the extension work at all. YouTube and others still work perfectly fine though

I get the following error in the js console: STREAMKEYS-ERROR: Element not found for click. [title='Pause'],[title='Play']

Edit: It appears to be broken with commit #284

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (4 by maintainers)

Most upvoted comments

Class selectors can be used for buttons instead of title matching. Like following.

var multiSelectors = {
    playPause: ["#play-pause", "#play", ".spoticon-pause-32,.spoticon-play-32"],
    playNext: ["#next", "#next", ".spoticon-skip-forward-24"],
    playPrev: ["#previous", "#previous", ".spoticon-skip-back-24"],
    playState: ["#play-pause.playing", "#play.playing", ".spoticon-pause-32"],
    ...
  };