Librespot addon

  • Hi,


    It is the same issue as I was mentioned above. I use LibreELEC on intel NUC (generic version). After system reboots the Librespot add-on is not working. I have to manually disable and enable the add-on to make it works properly.

    In advance thank you for help.


    log after system reboot:

    -- Logs begin at Wed 2017-05-31 01:40:09 CEST, end at Wed 2017-05-31 01:44:39 CE

    ST. --

    May 31 01:40:09 LibreELEC systemd[1]: Started librespot.

    May 31 01:40:10 LibreELEC sh[277]: Unable to activate an audio interface on Gene

    ric.x86_64

  • Weird: librespot starts before alsa. A temporary fix could be to remove 'exit' at line 49 of /storage/.kodi/addons/service.librespot/bin/librespot.start

  • Hi,


    The addon is not working after reboot even when I have commented "#exit" on the line 49


    -- Logs begin at Mon 2017-06-05 17:41:15 CEST, end at Mon 2017-06-05 17:43:56 CEST. --

    Jun 05 17:41:16 LibreELEC systemd[1]: Started librespot.

    Jun 05 17:41:16 LibreELEC sh[292]: Unable to activate an audio interface on Generic.x86_64

    Jun 05 17:41:16 LibreELEC sh[292]: Unable to activate card PCH on Generic.x86_64

  • I installed the librespot addon on my rPi 3 running libreelec but I cannot see this device from the spotify android app. Are there any settings that I should change?


    Thanks in advance


    EDIT : I can see libreelc from the andoid app and connect to librespot but there is no sound


    EDIT : I found the solution. Had to set the playback route

  • I experience the same issue with the 8.1.90 as with the 8.1.100 version (Generic x86 verision)

    Addon won't start after reboot. I have to disable and enable it to start working properly.


    -- Logs begin at Thu 2017-06-08 21:21:20 CEST, end at Thu 2017-06-08 21:22:46 CE

    ST. --

    Jun 08 21:21:21 LibreELEC systemd[1]: Started librespot.

    Jun 08 21:21:21 LibreELEC sh[280]: Unable to activate an audio interface on Gene

    ric.x86_64

  • great addon but i cant seem to get discovery mode to work, is it supposed to work? i'm using the rpi2 version on my rpi3. and is it possible to prevent screensaver when Music is playing?

  • great addon but i cant seem to get discovery mode to work, is it supposed to work? i'm using the rpi2 version on my rpi3. and is it possible to prevent screensaver when Music is playing?

    Please provide a log to help me assess why discovery mode does not work.


    Kodi is not aware of librespot: disable the screensaver?

  • i rely on the screensaver to turn my tv and reciever off hehe, ill figure something out!


    all lines containing "librespot" from log:


    Code
    1. 06:37:51.870 T:1962037248   DEBUG: ADDON: cpluff: 'Plug-in service.librespot has been installed.'
    2. 06:37:53.170 T:1962037248   DEBUG: LocalizeStrings: loaded 17 strings from file /storage/.kodi/addons/service.librespot/resources/language/English/strings.po
    3. 06:37:54.669 T:1778381728   DEBUG: -->Python Interpreter Initialized<--
    4. 06:37:54.669 T:1778381728   DEBUG: CPythonInvoker(0, /storage/.kodi/addons/service.librespot/default.py): the source file to load is "/storage/.kodi/addons/service.librespot/default.py"
    5. 06:37:54.669 T:1778381728   DEBUG: CPythonInvoker(0, /storage/.kodi/addons/service.librespot/default.py): setting the Python path to /storage/.kodi/addons/service.librespot:/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/lib/python2.7/site-packages:/usr/lib/python2.7/site-packages/gtk-2.0
    6. 06:37:54.669 T:1778381728   DEBUG: CPythonInvoker(0, /storage/.kodi/addons/service.librespot/default.py): entering source directory /storage/.kodi/addons/service.librespot
    7. 06:37:54.669 T:1778381728   DEBUG: CPythonInvoker(0, /storage/.kodi/addons/service.librespot/default.py): instantiating addon using automatically obtained id of "service.librespot" dependent on version 2.1.0 of the xbmc.python api

    do you need more?


    librespot settings.xml

    Code
    1. <settings>
    2. <setting id="ls_b" value="320" />
    3. <setting id="ls_d" value="true" />
    4. <setting id="ls_o" value="default:CARD=ALSA" />
    5. <setting id="ls_p" value="" />
    6. <setting id="ls_u" value="" />
    7. <setting id="pcm_3" value="0" />
    8. </settings>
  • awiouy I've tested an x86_64 build of the addon pushed to LibreELEC, librespot: initial addon by awiouy · Pull Request #1622 · LibreELEC/LibreELEC.tv · GitHub, and I can confirm its working as intended.


    One issue encountered though when compiling is that adding rust to the depends results in a conflict with the existing rust that I have already installed on my system.

    Code
    1. BUILD rust (target)
    2. info: downloading installer
    3. warning: it looks like you have an existing installation of Rust
    4. warning: rustup cannot be installed alongside Rust. Please uninstall first
    5. warning: run `/usr/local/lib/rustlib/uninstall.sh` as root to uninstall Rust
    6. error: cannot install while Rust is installed

    Rustup checks for other installs and exits with an error if it finds another (see rustup.rs/issues/953). Not sure if we can edit the downloaded install scripts on the fly as suggested in comment-299596429 until a fix is added upstream.

  • awiouy I've tested an x86_64 build of the addon pushed to LibreELEC, librespot: initial addon by awiouy · Pull Request #1622 · LibreELEC/LibreELEC.tv · GitHub, and I can confirm its working as intended.


    One issue encountered though when compiling is that adding rust to the depends results in a conflict with the existing rust that I have already installed on my system.

    Code
    1. BUILD rust (target)
    2. info: downloading installer
    3. warning: it looks like you have an existing installation of Rust
    4. warning: rustup cannot be installed alongside Rust. Please uninstall first
    5. warning: run `/usr/local/lib/rustlib/uninstall.sh` as root to uninstall Rust
    6. error: cannot install while Rust is installed

    Rustup checks for other installs and exits with an error if it finds another (see rustup.rs/issues/953). Not sure if we can edit the downloaded install scripts on the fly as suggested in comment-299596429 until a fix is added upstream.

    Thanks for your invaluable contribution to Re-enable avahi support for discovery by awiouy · Pull Request #201 · plietar/librespot · GitHub, and thanks for you feedback.

    As for rustup, could the simplest workaround be to remove other rust installs from PATH before building rust in LibreELEC?

  • I could be reading it wrong but the path looks hard coded to me:

    self_update.rs#L338

    Code
    1. let rustc_manifest_path
    2. = PathBuf::from("/usr/local/lib/rustlib/manifest-rustc");
    3. let uninstaller_path
    4. = PathBuf::from("/usr/local/lib/rustlib/uninstall.sh")
  • Hey, is there a more recent build of this addon than "RPi2.service.librespot-8.1.100.zip"? The first post by awiouy links to "RPI2.service.librespot-8.1.90.zip" and I am not sure where I got version 8.1.100 from.

    The merged MR on libreelec github project seems to also not having arrived in the official repository as of now.