[% 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="" %]
Please select the file(s) you want to delete:
[% PROCESS "plugins/Spotty/settings/playlist-folders-list.html" %] [% END; END %] [% WRAPPER setting title="" desc="" %] If you want to transfer the playlist hierarchy information, please follow these steps:
  1. Download this script for Linux/macOS/Unix, or this utility for Windows to the computer where you have Spotify installed.
  2. Extract the downloaded files. On Linux/macOS/Unix run chmod a+x findSpotifyFolderFiles.sh from the download folder to make the script executable
  3. Run the tool with your Logitech Media Server's IP and Port: eg. ./findSpotifyFolderFiles.sh 192.168.0.1:9000 (Linux/macOS/Unix), or findSpotifyFolderFiles.exe 192.168.0.1:9000 (Windows)
In the success case you'd get a list of file names that got imported. Otherwise some error message.
[% END %] [% WRAPPER setting title="Upload Playlist Hierarchy File" desc="" %] If above method failed to transfer the playlist hierarchy information file, you can upload it manually:

[% END %] [% IF uploadError; WRAPPER setting title="" desc="" %] [% uploadError %] [% END; END %] [% PROCESS settings/footer.html %]