Librespot addon

  • awiouy latest preview didn't work as well – rpi spotify server was visible but as soon as i tried to connect to it it crashed

    • Official Post

    awiouy latest preview didn't work as well – rpi spotify server was visible but as soon as i tried to connect to it it crashed

    That log shows nothing abnormal.

    Was Kodi playing something back, as this stops the librespot service.

  • That log shows nothing abnormal.

    Was Kodi playing something back, as this stops the librespot service.

    kodi wasn't playing anything - i just booted up my rpi and as soon as it was ready i tried to connect and librespot service crashed

  • 8.1.105 has some problems to start on my generic 8.0.2

    For example after playing a video it takes a few minutes before Librespot works again

    Somtimes I even need to reboot

    I noticed 2 different zipfiles for this (rpi and generic)

    Does it take the generic by default from the repository or is it worth it to play with these zipfiles ?

  • 8.1.105 has some problems to start on my generic 8.0.2

    For example after playing a video it takes a few minutes before Librespot works again

    Somtimes I even need to reboot

    I noticed 2 different zipfiles for this (rpi and generic)

    Does it take the generic by default from the repository or is it worth it to play with these zipfiles ?

    Sorry to read this... Reconnection is snappy here on my RPi3.

    Could you send me a log (journalctl -u service.librespot) so that I can assess what is happening.

    Thank you in advance.

  • I start LibreElec and wait half a minute or so

    Then I had to try to connect a couple of times before it started playing

    Stopped and played a video

    Waited half a minute or so

    Then I had to try to connect a couple of times before it started playing

    No idea how to post a log so I pasted it as a spoiler :)

    Display Spoiler

    Jul 22 16:58:55 AsRock systemd[1]: Started librespot.

    Jul 22 16:59:02 AsRock sh[348]: INFO:librespot: librespot 19662a5 (2017-07-19). Built on 2017-07-19. Build ID: sPpPYvJ7

    Jul 22 16:59:02 AsRock sh[348]: *** WARNING *** The program 'librespot' uses the Apple Bonjour compatibility layer of Avahi.

    Jul 22 16:59:02 AsRock sh[348]: *** WARNING *** Please fix your application to use the native API of Avahi!

    Jul 22 16:59:02 AsRock sh[348]: *** WARNING *** For more information see <avahi-compat?s=libdns_sd&e=librespot>

    Jul 22 16:59:02 AsRock librespot[761]: *** WARNING *** The program 'librespot' uses the Apple Bonjour compatibility layer of Avahi.

    Jul 22 16:59:02 AsRock librespot[761]: *** WARNING *** Please fix your application to use the native API of Avahi!

    Jul 22 16:59:02 AsRock librespot[761]: *** WARNING *** For more information see <avahi-compat?s=libdns_sd&e=librespot>

    Jul 22 16:59:08 AsRock sh[348]: INFO:librespot::session: Connecting to AP "gew1-accesspoint-b-tfr7.ap.spotify.com:4070"

    Jul 22 16:59:14 AsRock sh[348]: INFO:librespot::session: Authenticated as "woodskiz" !

    Jul 22 16:59:14 AsRock sh[348]: INFO:librespot::audio_backend::alsa: Using alsa sink

    Jul 22 16:59:14 AsRock sh[348]: INFO:librespot::session: Country: "NL"

    Jul 22 16:59:35 AsRock sh[348]: INFO:librespot::player: Loading track "Emergency on Planet Earth - Remastered"

    Jul 22 16:59:39 AsRock sh[348]: INFO:librespot::player: Track "Emergency on Planet Earth - Remastered" loaded

    Jul 22 16:59:46 AsRock sh[348]: INFO:librespot::player: Loading track "Emergency on Planet Earth - Remastered"

    Jul 22 16:59:49 AsRock sh[348]: INFO:librespot::player: Track "Emergency on Planet Earth - Remastered" loaded

    Jul 22 16:59:49 AsRock sh[348]: INFO:librespot::player: onstart 1

    Jul 22 16:59:54 AsRock sh[348]: INFO:librespot::player: onstop 4

    Jul 22 17:00:01 AsRock sh[348]: INFO:librespot::player: onstart 2

    Jul 22 17:00:04 AsRock sh[348]: INFO:librespot::player: onstop 5

    Jul 22 17:00:08 AsRock sh[348]: INFO:librespot::player: Loading track "Emergency on Planet Earth - Remastered"

    Jul 22 17:00:11 AsRock sh[348]: INFO:librespot::player: Track "Emergency on Planet Earth - Remastered" loaded

    Jul 22 17:00:11 AsRock sh[348]: INFO:librespot::player: onstart 1

    Jul 22 17:00:20 AsRock sh[348]: INFO:librespot::player: onstop 4

    Jul 22 17:00:35 AsRock systemd[1]: Stopping librespot...

    Jul 22 17:00:35 AsRock pactl[831]: Failure: No such entity

    Jul 22 17:00:35 AsRock systemd[1]: service.librespot.service: Control process exited, code=exited status=1

    Jul 22 17:00:35 AsRock systemd[1]: Stopped librespot.

    Jul 22 17:00:35 AsRock systemd[1]: service.librespot.service: Unit entered failed state.

    Jul 22 17:00:35 AsRock systemd[1]: service.librespot.service: Failed with result 'exit-code'.

    Jul 22 17:00:42 AsRock systemd[1]: Started librespot.

    Jul 22 17:00:49 AsRock sh[839]: INFO:librespot: librespot 19662a5 (2017-07-19). Built on 2017-07-19. Build ID: sPpPYvJ7

    Jul 22 17:00:49 AsRock sh[839]: *** WARNING *** The program 'librespot' uses the Apple Bonjour compatibility layer of Avahi.

    Jul 22 17:00:49 AsRock sh[839]: *** WARNING *** Please fix your application to use the native API of Avahi!

    Jul 22 17:00:49 AsRock sh[839]: *** WARNING *** For more information see <avahi-compat?s=libdns_sd&e=librespot>

    Jul 22 17:00:49 AsRock librespot[850]: *** WARNING *** The program 'librespot' uses the Apple Bonjour compatibility layer of Avahi.

    Jul 22 17:00:49 AsRock librespot[850]: *** WARNING *** Please fix your application to use the native API of Avahi!

    Jul 22 17:00:49 AsRock librespot[850]: *** WARNING *** For more information see <avahi-compat?s=libdns_sd&e=librespot>

    Jul 22 17:00:55 AsRock sh[839]: INFO:librespot::session: Connecting to AP "gew1-accesspoint-b-drgr.ap.spotify.com:4070"

    Jul 22 17:01:01 AsRock sh[839]: INFO:librespot::session: Authenticated as "woodskiz" !

    Jul 22 17:01:01 AsRock sh[839]: INFO:librespot::audio_backend::alsa: Using alsa sink

    Jul 22 17:01:01 AsRock sh[839]: INFO:librespot::session: Country: "NL"

    Jul 22 17:01:07 AsRock sh[839]: INFO:librespot::player: Loading track "Emergency on Planet Earth - Remastered"

    Jul 22 17:01:09 AsRock sh[839]: INFO:librespot::player: Track "Emergency on Planet Earth - Remastered" loaded

    Jul 22 17:01:45 AsRock sh[839]: INFO:librespot::player: Loading track "Emergency on Planet Earth - Remastered"

    Jul 22 17:01:47 AsRock sh[839]: INFO:librespot::player: Track "Emergency on Planet Earth - Remastered" loaded

    Jul 22 17:01:47 AsRock sh[839]: INFO:librespot::player: onstart 1

    Jul 22 17:01:57 AsRock sh[839]: INFO:librespot::player: onstop 5

    Jul 22 17:02:02 AsRock sh[839]: INFO:librespot::player: Loading track "Emergency on Planet Earth - Remastered"

    Jul 22 17:02:04 AsRock sh[839]: INFO:librespot::player: Track "Emergency on Planet Earth - Remastered" loaded

    Jul 22 17:02:04 AsRock sh[839]: INFO:librespot::player: onstart 1

    Jul 22 17:02:33 AsRock sh[839]: INFO:librespot::player: onstop 1

    Jul 22 17:02:33 AsRock sh[839]: INFO:librespot::player: Loading track "Canned Heat - Remastered"

    Jul 22 17:02:34 AsRock sh[839]: INFO:librespot::player: Track "Canned Heat - Remastered" loaded

    Jul 22 17:02:34 AsRock sh[839]: INFO:librespot::player: onstart 1

  • I get a notification now popping up the title and artist.

    But with ALSA it still won't start the song in the first minute or 2.

    It looks though that Kodi output is much better now

    Responsive within an acceptable second or two

    It also works right away after a reboot

    And it's responsive after stopping a video

    The screen goes a bit bananas displaying and playing a song with a increasing length of 3.. 4... 5.. 6... seconds

    And then the screen goes black after 6 or so seconds

    Still displaying notifications though

    For me this is perfect :P

    Does the avahi dns error matter ?

    • Official Post

    Discovery mode would not work without Avahi

    • Official Post

    I have pushed revision 106 of the addon, which corresponds to preview 105d.

    I intend to further improve the addon, in particular:

    1. continuous playback, in the line of this proposal

    2. write to the control named pipe directly from librespot rather than with a bash script

    3. show a customized on screen display (OSD)

    Would a Rust programmer be so kind to help me out with #2

    Would a Kodi skinner be so kind to help me out with #3

    Thanks in advance

  • It is working here, but not at boot. I need to navigate to the plugin and disable/enable it. When I do that it will show up in spotify but not before that, doesn't seem to autostart on boot? I was on an old build (manually installed), uninstalled that one and got the one from the repo's.

    Another strange issue, I have auto screen off after 5 mins, this kills the music while it is connected through SPDIF not HDMI.

  • It is working here, but not at boot. I need to navigate to the plugin and disable/enable it. When I do that it will show up in spotify but not before that, doesn't seem to autostart on boot? I was on an old build (manually installed), uninstalled that one and got the one from the repo's.

    Another strange issue, I have auto screen off after 5 mins, this kills the music while it is connected through SPDIF not HDMI.

    Hm... Revision 106 of the addon waits for Kodi to start, by that time audio devices should be up.

    Are you playing in ALSA or Kodi mode (you can check this in the settings of the addon)?

    A log (journalctl -u service.librespot) would be helpful to assess both issues.