Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 10 of 464

Threaded View

  1. #1
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,524

    The Spotty Spotify implementation

    Please head over to the announcement thread for continued discussion.


    Here's Spotty, my not fully fleshed out potential next generation Spotify implementation for Squeezebox.

    Spotty is using the open-source librespot library (https://github.com/plietar/librespot). That library is implemented in a programming language I didn't even know before (Rust). So please prepare for failure and longish bugfix cycles :-). If you're ready to take the risk, here you go:

    • Add http://www.herger.net/slim-plugins/test.xml to the plugins repository list
    • Install Spotty
    • Uninstall the official Spotify, Spotify Protocol Handler and Triode's Spotify plugins (if installed)
    • Head over to mysqueezebox.com to remove Spotify from your apps
    • Restart LMS
    • Go to Settings/Advanced/Spotty and follow the instructions
    • Use Spotty as you used to use Spotify on SB before.


    On platforms other than Windows you should be able to authorize the plugin using your mobile or desktop Spotify application. On Windows unfortunately you'll have to enter username/password (which are NOT stored in LMS).

    My kids have been using this plugin for a few weeks now, for hours a day. It sometimes takes a tad longer to buffer the first track. But after that playback seems to be pretty gapless. It does seeking. Doesn't crash when skipping tracks. Isn't limited to a single device. Let's keep fingers crossed it continues to work post Fall '17...

    Technically this implementation follows a pretty different approach than the old implementations. Rather than having a daemon run in the background, Spotty is running the helper app for every track. It uses the transcoding framework to pipe the audio data back in to LMS, very much like any file format would do which required transcoding. By default Spotty would stream audio as FLAC. But this can be changed in the file formats settings (PCM or mp3). My office LMS is running on a piCorePlayer based Pi3 installation. CPU load is well below 10% during playback.

    There are binaries for MacOS, Windows (needs MS VC 2015 runtime), and some Linux flavors (i686, x86_64, ARM HF & SF). I would be surprised if they worked all, though :-/. In particular the arm build has seen little to no testing. It fails on my ReadyNAS Duo v2 lack of some dependencies. The list continues... Please report back your "uname -a" if you fail on Linux. Thanks!
    Last edited by mherger; 2017-07-05 at 22:03.
    Michael

    "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
    (LMS: Settings/Information)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •