[% PROCESS settings/header.html %] [% title = "PLUGIN_SPOTTY" %] [% BLOCK niceNumbers %] [% PERL %] my $count = $stash->{count} - 2; print ['Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', 'Nine']->[$count] || $count; [% END %] [% END %] [% WRAPPER setting title="Playlist Hierarchies" desc="" %] Unfortunately Spotify does not send information about the hierarchy in which you've organized your playlists. But we can try to find that information from a Spotify application's cache folder. This can either happen automatically if a Spotify application is run on the same computer as your Logitech Media Server. Or, if this is not the case (eg. Logitech Media Server is run on a NAS), you can import those files from a computer on which you run Spotify. [% END %] [% WRAPPER setting title="Playlist Hierarchies found in Spotify" desc="" %] [% endOfPhrase = "found in your system's Spotify installation (${spotifyCacheFolder})" %] [% IF spotifyFiles.size == 1 %] One playlist hierarchy was [% endOfPhrase %] [% ELSIF spotifyFiles.size %] [% PROCESS niceNumbers count=spotifyFiles.size %] playlist hierarchies were [% endOfPhrase %] [% ELSE %] No Spotify cache folder was [% endOfPhrase %]. [% END %] [% END %] [% WRAPPER setting title="Imported Playlist Hierarchy Files" desc="" %] [% IF cacheFiles.size == 1 %] One imported playlist hierarchy was found. [% ELSIF cacheFiles.size %] [% PROCESS niceNumbers count=cacheFiles.size %] imported playlist hierarchies were found. [% ELSE %] No imported playlist hierarchy was found. [% END %] [% END %] [% IF cacheFiles.size; WRAPPER setting title="" desc="" %]
chmod a+x findSpotifyFolderFiles.sh
from the
download folder to make the script executable./findSpotifyFolderFiles.sh 192.168.0.1:9000
(Linux/macOS/Unix),
or findSpotifyFolderFiles.exe 192.168.0.1:9000
(Windows)