Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 71 1231151 ... LastLast
Results 1 to 10 of 705
  1. #1
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,460

    Online music service integration - how to test

    As mentioned in http://forums.slimdevices.com/showthread.php?t=111405 I'm working on some code to better integrate music services with the local music library. Albums from your online music service should show up under "My Music", be accessible to random play, quick search etc. This currently is all work in progress. But I'm already using it on my main system at home.

    In order to test this new feature there are two easy steps:


    Please report back. Have fun!



    FORGET THE REST OF THIS POSTING - I'm only leaving it in here for the really involved

    If you want to test this, you'll need a few things:

    • you'll need git, and some basic git knowledge (see https://git-scm.com/downloads/guis for GUIs)
    • you'll need to be able to run LMS from the source code
    • as of this day you'll need to be a Spotty user
    • you'll need to be ready to face issues and temporarily broken features


    Get LMS in the folder of your choice:
    Code:
    git clone https://github.com/Logitech/slimserver.git
    Inside the clone get the working branch:
    Code:
    git checkout --track origin/public/feature/online-library-integration
    Create a folder called "Plugins" (uppercase first, s at the end) inside the LMS folder if it doesn't exist yet. Enter that folder and get Spotty:
    Code:
    git clone https://github.com/michaelherger/Spotty-Plugin.git Spotty
    Make sure you define the "Spotty" target folder, as that name is expected by the plugin, but does not match the repository name! Enter the Spotty folder and get the correct branch:
    Code:
    git checkout --track origin/library-integration
    Head back up to the LMS folder and launch slimserver.pl. During development it can be useful (and overwhelming) to run it with logging for Spotty:
    Code:
    ./slimserver.pl --debug plugin.spotty=info
    Do whatever magic is required to run this on your system.

    Set up Spotty, re-scan your library. You should see two new scan steps dealing with Spotify albums and playlists. Once done the albums show up alongside your own albums in My Music.

    You'll currently have to re-scan whenever you want to update the Spotify data in your library. Automatic updates is something I want to add at some point. But it could potentially be heavy on the API services.

    Good luck! And please report back your findings!
    Last edited by mherger; 2020-01-14 at 15:48.
    Michael

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

  2. #2
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,460
    One stupid limitation probably worth mentioning: Spotify doesn't know the concept of Genres (yet). While there is a field of that name in the metadata, it's usually just empty. Therefore all tracks simply come with the genre "Spotify" right now. I hope they'll change that at some point in the not too distant future...
    Michael

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

  3. #3
    Senior Member
    Join Date
    May 2006
    Location
    Silicon Valley
    Posts
    594
    OK, I think I have it working ... at least that is my initial impression. I will do testing and actual usage tomorrow.
    Living Room: SB Touch + DIY PSU > CI Audio VDA.2 DAC + VAC.1 PSU > VRX.1 cables > Emotiva XSP-1 Gen 2 preamp + XPA-DR2 amp > Blue Jeans cables > B&W 804 speakers
    Laptop: System76 Galago + Ubuntu 16.04 + Squeezelite + Vivaldi/Material Skin > Emotiva Little Ego DAC > Grado PS500 headphones
    Bedroom: RPi Zero W + Squeezelite > miniBOSS DAC HAT > Bose SoundLink Revolve
    Phone: Pixel 3a + SB Player + Material APK > Senn IE80 earbuds
    Server: Puget Systems Serenity + Ubuntu 18.04 + LMS 8.0

  4. #4
    Senior Member bakker_be's Avatar
    Join Date
    May 2009
    Location
    Kwaadmechelen, Belgium
    Posts
    916
    This has probably been covered elsewhere before, but can't seem to find it ...
    For the purpose of this test I'm "quickly" setting up a parallel LMS install, but the only machine I have at my disposal at the moment is a rather recently installed Windows 10 64-bit machine. I installed git, did the check-outs as indicated and also installed Perl. I get the following error when launching slimserver.pl:
    Code:
    C:\Users\Bart Kestelyn\OneDrive\Documents\GitHub\slimserver>perl slimserver.pl
    The following CPAN modules were found but cannot work with Logitech Media Server:
      Image::Scale (loaded 0.14 but missing object file, need 0.08)
      XML::Parser:
    Parser.pm and Expat.pm versions don't match at C:\Users\Bart Kestelyn\OneDrive\Documents\GitHub\slimserver\CPAN/XML/Parser.pm line 20.
    BEGIN failed--compilation aborted at C:\Users\Bart Kestelyn\OneDrive\Documents\GitHub\slimserver\CPAN/XML/Parser.pm line 22.
    Compilation failed in require at (eval 141) line 1.
    BEGIN failed--compilation aborted at (eval 141) line 1.
    
    
    To fix this problem you have several options:
    1. Install the latest version of the module(s) using CPAN: sudo cpan Some::Module
    2. Update the module's package using apt-get, yum, etc.
    3. Run the .tar.gz version of Logitech Media Server which includes all required CPAN modules.
    I probably have a too recent version of Perl, but which one is the right one
    Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901 + Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer PDP-LX5090H
    Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
    Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
    Kitchen: iPhone 5s + iPeng (local playback activated) + NAD 312 + Teufel Ultima 20 Mk 2
    Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Cyrus Soundkey + Topping A30 + Focal Elear
    Car: TBC ...

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

    Online music service integration - how to test

    > I probably have a too recent version of Perl, but which one is the right
    > one


    Yeah, on Windows you have to use a rather old version 5.14 - which is no
    longer available from ActiveState. I'll PM you a link.

    --

    Michael

  6. #6
    Senior Member
    Join Date
    Feb 2011
    Location
    Cheshire, UK
    Posts
    5,008
    @michael

    I have a working LMS on Raspbian cloned from github with Perl 5.28 and IO:Socket:SSL installed

    However I am confused - what do you mean by

    "Inside the clone get the working branch:"

    Code:
    git checkout --track origin/public/feature/online-library-integration
    Inside the slimserver clone I see a .git folder and inside that a branches folder which is empty. Where exactly do I need to run this and the subsequent commands from?
    VB2.4 storage QNAP TS419p (NFS)
    Living Room - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s
    Office - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3 -> Onkyo CRN755 -> Wharfedale Modus Cubes
    Dining Room -> SB Boom
    Kitchen -> UE Radio (upgraded to SB Radio)
    Bedroom (Bedside) - Pi2+DAC ->ToppingTP21 ->AKG Headphones
    Bedroom (TV) - SB Touch ->Sherwood AVR ->Mordaunt Short M10s
    Everything controlled by iPeng

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

    Online music service integration - how to test

    > Code:
    > --------------------
    > git checkout --track origin/public/feature/online-library-integration
    > --------------------
    >
    >
    > Inside the slimserver clone I see a .git folder and inside that a
    > branches folder which is empty. Where exactly do I need to run this and
    > the subsequent commands from?


    Just run above command inside the LMS checkout folder (NOT in the .git
    folder).


    --

    Michael

  8. #8
    Senior Member
    Join Date
    Feb 2011
    Location
    Cheshire, UK
    Posts
    5,008
    Quote Originally Posted by mherger View Post
    > Code:
    > --------------------
    > git checkout --track origin/public/feature/online-library-integration
    > --------------------
    >
    >
    > Inside the slimserver clone I see a .git folder and inside that a
    > branches folder which is empty. Where exactly do I need to run this and
    > the subsequent commands from?


    Just run above command inside the LMS checkout folder (NOT in the .git
    folder).


    --

    Michael
    I get

    Code:
    fatal: 'origin/public/feature/online-library-intergation' is not a commit and a branch 'public/feature/online-library-intergation' cannot be created from it
    VB2.4 storage QNAP TS419p (NFS)
    Living Room - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s
    Office - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3 -> Onkyo CRN755 -> Wharfedale Modus Cubes
    Dining Room -> SB Boom
    Kitchen -> UE Radio (upgraded to SB Radio)
    Bedroom (Bedside) - Pi2+DAC ->ToppingTP21 ->AKG Headphones
    Bedroom (TV) - SB Touch ->Sherwood AVR ->Mordaunt Short M10s
    Everything controlled by iPeng

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

    Online music service integration - how to test

    > Code:
    > --------------------
    > fatal: 'origin/public/feature/online-library-intergation' is not a commit and a branch 'public/feature/online-library-intergation' cannot be created from it
    > --------------------


    Maybe you need to

    git fetch --all

    first...

    what would

    git status

    tell you?

    --

    Michael

  10. #10
    Senior Member
    Join Date
    Jan 2010
    Location
    Hertfordshire
    Posts
    5,135
    Quote Originally Posted by d6jg View Post
    I get

    Code:
    fatal: 'origin/public/feature/online-library-intergation' is not a commit and a branch 'public/feature/online-library-intergation' cannot be created from it
    Is that because you are spelling "integration" incorrectly?

    Sent from my Pixel 3a using Tapatalk

Posting Permissions

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