Posts by awiouy

    works as expected. I noticed the changes to configuration but did not invest more time in them aside from switching to kodi playback.

    is there anything in particular, that I could test for you?

    Thanks, I just wanted to make sure I did not overlook anything obvious.

    I have have updated streaming to Kodi:

    Code

    Preview for Generic

    Preview for RPi2

    Improvements:

    Update to latest librespot.

    Stopping Librespot playback in Kodi restarts librespot service, playing user is disconnected.

    librespot service is stopped during Kodi playback.

    Cosmetic changes.

    Known issues:

    Kodi user interface erroneously displays default addon settings after Librespot playback.

    This likely lies with Kodi.

    Thank you for your feedback.

    Thank you for the feedback ZyanKLee

    I will see if I can reduce the latency introduced by ffmpeg.

    As for not being able to stop feedback from another account, I think it is a (quite logical) feature of librespot. I was thinking of enabling the Kodi user (rather than the connected Spotify user) to stop Spotify playback.

    I will see if there is a way to provide playback information, but the only information readily available seems to be the title of the current track.

    I created a proof of concept to demonstrate playback through Kodi.

    Preview addon for Generic

    Preview addon for RPi2

    Code

    To activate set Mode to Kodi in the addon settings.

    Librespot will therequest Kodi to play the stream onstart (every time librespot starts playing a track), provided Kodi is not playing something.

    This should solve some of the issues raised in this thread, namely:

    interference with Kodi newphreak

    discontinuous playback ZyanKLee

    screensaver klisk

    volume

    User interaction is rudimentary and work in progress.

    We heard some of "Bibi Blocksberg", "Jake und die Nimmerlandpiraten" and "Leo Lausemaus" which are in German, so it might be hard to notice if you wouldn't understand it. ;) I can try to find some english audiobooks later this evening.

    Diese Audiobücher kann ich ohne Mühe verstehen, Zyankali ;)

    I notice some delay with playback on track change. this is most annoying with audiobooks when on each track start aproximately 1 second is missing/silent. This only happens with playback via librespot - playback with kodi works as expected.

    I have no experience with Spotify audiobooks. Please provide an example, so that I can try to reproduce your issue.

    awiouy : My intel NUC is wired (macbook & other control devices are wireless, but I think we don't care ^^)

    I'll also try the plugin directly on raspberry-pi-1 with raspbian (wireless), but in my case the issue was on the intel nuc

    Hm... DNS error suggests that network is not fully up when librespot starts... I would like to understand then mitigate ;)

    Note that activate_card is merely a function, called somewhere in the script, and that this function does nothing on x86_64.

    Is your network wired or wireless?

    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.

    We noticed a build issue while building librespot, which is fixed by PR #1707. Librespot should be available soon for all projects, via the LibreELEC Add-ons repository. Thank you for your patience.

    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
      BUILD    rust (target)
    info: downloading installer
    warning: it looks like you have an existing installation of Rust
    warning: rustup cannot be installed alongside Rust. Please uninstall first
    warning: run `/usr/local/lib/rustlib/uninstall.sh` as root to uninstall Rust
    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 rely on the screensaver to turn my tv and reciever off hehe, ill figure something out!

    all lines containing "librespot" from log:

    Code
    06:37:51.870 T:1962037248   DEBUG: ADDON: cpluff: 'Plug-in service.librespot has been installed.'
    06:37:53.170 T:1962037248   DEBUG: LocalizeStrings: loaded 17 strings from file /storage/.kodi/addons/service.librespot/resources/language/English/strings.po
    
    
    
    06:37:54.669 T:1778381728   DEBUG: -->Python Interpreter Initialized<--
    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"
    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
    06:37:54.669 T:1778381728   DEBUG: CPythonInvoker(0, /storage/.kodi/addons/service.librespot/default.py): entering source directory /storage/.kodi/addons/service.librespot
    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
    <settings>
        <setting id="ls_b" value="320" />
        <setting id="ls_d" value="true" />
        <setting id="ls_o" value="default:CARD=ALSA" />
        <setting id="ls_p" value="" />
        <setting id="ls_u" value="" />
        <setting id="pcm_3" value="0" />
    </settings>

    journalctl -u service.librespot