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:
- Install Logitech Media Server 8 (http://downloads.slimdevices.com/nightly/?ver=8.0)
- Install the Spotty Beta from my test repository (http://www.herger.net/slim-plugins/test.xml)
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:
Inside the clone get the working branch:Code:git clone https://github.com/Logitech/slimserver.git
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 checkout --track origin/public/feature/online-library-integration
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 clone https://github.com/michaelherger/Spotty-Plugin.git Spotty
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:git checkout --track origin/library-integration
Do whatever magic is required to run this on your system.Code:./slimserver.pl --debug plugin.spotty=info
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!
Results 1 to 10 of 740
-
2020-01-04, 23:53 #1
Online music service integration - how to test
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)
-
2020-01-05, 00:11 #2
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)
-
2020-01-05, 03:26 #3
- Join Date
- May 2006
- Location
- Silicon Valley
- Posts
- 631
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.2
-
2020-01-06, 06:31 #4
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.
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 ...
-
2020-01-06, 06:39 #5
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
-
2020-01-07, 03:22 #6
- Join Date
- Feb 2011
- Location
- Cheshire, UK
- Posts
- 5,457
@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
VB2.4 storage QNAP TS419p (NFS)
Living Room Joggler & Pi4/Khadas -> Onkyo TXNR686 -> Celestion F20s
Office Joggler & Pi3 -> Denon RCD N8 -> Celestion F10s
Dining Room SB Boom
Kitchen UE Radio (upgraded to SB Radio)
Bedroom (Bedside) Pi Zero+DAC ->ToppingTP21 ->AKG Headphones
Bedroom (TV) & Bathroom SB Touch ->Denon AVR ->Mordaunt Short M10s + Kef ceiling speakers
Guest Room Joggler > Topping Amp -> Wharfedale Modus Cubes
Everything controlled by iPeng & Material on iOS
-
2020-01-07, 05:34 #7
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
-
2020-01-07, 05:39 #8
- Join Date
- Feb 2011
- Location
- Cheshire, UK
- Posts
- 5,457
VB2.4 storage QNAP TS419p (NFS)
Living Room Joggler & Pi4/Khadas -> Onkyo TXNR686 -> Celestion F20s
Office Joggler & Pi3 -> Denon RCD N8 -> Celestion F10s
Dining Room SB Boom
Kitchen UE Radio (upgraded to SB Radio)
Bedroom (Bedside) Pi Zero+DAC ->ToppingTP21 ->AKG Headphones
Bedroom (TV) & Bathroom SB Touch ->Denon AVR ->Mordaunt Short M10s + Kef ceiling speakers
Guest Room Joggler > Topping Amp -> Wharfedale Modus Cubes
Everything controlled by iPeng & Material on iOS
-
2020-01-07, 05:57 #9
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
-
2020-01-07, 06:03 #10
- Join Date
- Jan 2010
- Location
- Hertfordshire
- Posts
- 6,227