Hi, was looking for this! where can I download the addon?
In LibreELEC 8.0 or later, install Librespot from the LibreELEC Add-ons repository (in the Services section)
Hi, was looking for this! where can I download the addon?
In LibreELEC 8.0 or later, install Librespot from the LibreELEC Add-ons repository (in the Services section)
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.
For information, preview 105d for RPi2 should run on arm variants of LibreELEC 8.x for Odroid_C2, S905, S912, WeTek_Hub and WeTek_Play_2.
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
And then the screen goes black after 6 or so seconds
You can pick a different visualisation
Display MoreI 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
Discovery mode would not work without Avahi
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.
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
There was a regression in revision 104, which is fixed in revision 105, which should be available very soon.
Please skip revision 104.
Apologies for the inconvience.
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
Code Display MoreJul 17 21:05:02 LibreELEC systemd[1]: Started librespot. Jul 17 21:05:03 LibreELEC sh[777]: INFO:librespot: librespot fd02204 (2017-07-15). Built on 2017-07-17. Jul 17 21:05:03 LibreELEC sh[777]: *** WARNING *** The program 'librespot' uses the Apple Bonjour compatibility layer of Avahi. Jul 17 21:05:03 LibreELEC librespot[791]: *** WARNING *** The program 'librespot' uses the Apple Bonjour compatibility layer of Avahi. Jul 17 21:05:03 LibreELEC sh[777]: *** WARNING *** Please fix your application to use the native API of Avahi! Jul 17 21:05:03 LibreELEC sh[777]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=librespot> Jul 17 21:05:03 LibreELEC librespot[791]: *** WARNING *** Please fix your application to use the native API of Avahi! Jul 17 21:05:03 LibreELEC librespot[791]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=librespot> Jul 17 21:05:03 LibreELEC sh[777]: INFO:librespot::session: Connecting to AP "gew1-accesspoint-b-xrr6.ap.spotify.com:4070" Jul 17 21:05:03 LibreELEC sh[777]: INFO:librespot::session: Authenticated as "11164585087" ! Jul 17 21:05:03 LibreELEC sh[777]: INFO:librespot::session: Country: "CZ" Jul 17 21:07:08 LibreELEC systemd[1]: Stopping librespot... Jul 17 21:07:08 LibreELEC systemd[1]: Stopped librespot.
That log shows nothing abnormal.
Was Kodi playing something back, as this stops the librespot service.
Display MoreHi,
I've tried using Librespot addon on my RPi 2 (LibreElec, Kodi 17.3) for a several days (always the latest version) and some issues still occur no matter what I do:
– when I boot up my RPi, LibreSpot is not "active" or at least on my phone/mac it's not visible as a spotify connect device –> to solve this I have to go to addon settings, re–enable the addon and then it works (however not always)
– when I chose Kodi as a output device any sound was not played at all
– when I finally managed to get it visible for my devices it crashed after a few songs played
– time to time happnes that it's visible and no sound comes out of it
Any suggestions? Thank you!
Try latest preview.
If problems persist, please provide system information and a log (journalctl -u service.librespot)
I have reworked the addon (revision 103h):
- Code
I have unsuccessfully attempted to update artist/title on track load: it introduced systematic playback resynchronization.
Thank you for your feedback
I have submitted a pull request to fix.
Revision 103 should be available soon.
Revision 102b is obsolete and I intend to rework it this week-end.
Problem is known upstream, and there is a fix, that we will apply today.
Thanks for the fast response.
I can`t change the output in the addon settings. It displays "Programs" but I can`t change anything using the arrows, neither in the ALSA tab.
I`m using a Raspi3 with Milhouses` nightly, librespot version is 8.1.102b
Milhouse nightlies are based on LibreELEC master (9.0), Librespot 8.1.102b is based on LibreELEC 8.1: your configuration is unlikely to work at all, because of mismatched libraries.
is there a way to prevent kodi from triggering the shutdown function timer while playing through librespot?
Stream to Kodi (select Kodi in addon settings)
Is librespot only working with Spotify Premium?
Yes
Here is a new preview release that attempts to solve two issues:
- latency in streaming to Kodi
- audio device not ready on service startup ( Camella)
On RPi2 latency is significantly improved
I have no hardware to test that audio device is ready before librespot service starts.
Thank you for you feedback.
Preview for RPi2 (should also run on Odroid_C2/arm)