Hi All,

I've come across this problem a few times and it's driven me bonkers
trying to figure out the problem and solution, so I thought I'd share
this here.

If you are using iTunes playlists imported into LMS, the CLI commands
for "playlist" using the name of the playlist or URL don't work! Instead
of importing iTunes playlists like normal LMS playlists using .m3u
files, it appears iTunes playlists are stored in a separate format and
querying them via the "playlists" cmd (see below) reveals that there is
no URL associated with them, but just "itunesplaylist:"+[name of
playlist]. I came across this when trying to create some bash scripts
which called the CLI to play specific playlists in home automation
scenes and also in the squeeze-alexa project on github.

playlists 0 255 tags:u
playlists 0 255 tags:u id:240194 playlist:90’s Music
url:itunesplaylist:90's Music id:240174 playlist:All (Charles)
url:itunesplaylist:All (Charles) id:240190 playlist:Alternative
url:itunesplaylist:Alternative id:240172 playlist:Audiobooks
url:itunesplaylist:Audiobooks id:240175 playlist:Classical
url:itunesplaylist:Classical id:240170 playlist:Downloaded
url:itunesplaylist:Downloaded id:240176 playlist:Easy
url:itunesplaylist:Easy id:240182 playlist:Everyday
url:itunesplaylist:Everyday id:240177 playlist:Favorites
url:itunesplaylist:Favorites id:240191 playlist:Folk
url:itunesplaylist:Folk id:240183 playlist:Hegedu/Klasszikus
url:itunesplaylist:Hegedu/Klasszikus id:240186 playlist:Instrumental
url:itunesplaylist:Instrumental id:240192 playlist:Jazz
url:itunesplaylist:Jazz id:240173 playlist:Charles
url:itunesplaylist:Charles id:240178 playlist:Charles Classical Short
url:itunesplaylist:Charles Classical Short id:240184 playlist:Mindig
Mindehol url:itunesplaylist:Mindig Mindehol id:240181 playlist:Sabrina
url:itunesplaylist:Sabrina id:240195 playlist:My Top Rated
url:itunesplaylist:My Top Rated id:240187 playlist:Kent
url:itunesplaylist:Kent id:240188 playlist:Kent 1
url:itunesplaylist:Kent 1 id:240189 playlist:Playlists for Squeezebox
url:itunesplaylist:Playlists for Squeezebox id:240171 playlist:Podcasts
url:itunesplaylist:Podcasts id:240179 playlist:Popper Etudes
url:itunesplaylist:Popper Etudes id:240185 playlist:Relax
url:itunesplaylist:Relax id:240193 playlist:Rock url:itunesplaylist:Rock
id:240180 playlist:Sleep url:itunesplaylist:Sleep id:225220
playlist:SyncOptions-Dining Room-00 04 20 22 cc a8
url:file:///volume2/music/LMS Playlists/SyncOptions-Dining
Room-00_04_20_22_cc_a8.m3u id:225236 playlist:SyncOptions-Kitchen-00 04
20 1e ec 9f url:file:///volume2/music/LMS
Playlists/SyncOptions-Kitchen-00_04_20_1e_ec_9f.m3u id:225237
playlist:SyncOptions-Kents Radio-00 04 20 28 2c 62
url:file:///volume2/music/LMS Playlists/SyncOptions-Kents
Radio-00_04_20_28_2c_62.m3u id:225238 playlist:SyncOptions-Kents
Stereo-80 1f 02 da 61 cb url:file:///volume2/music/LMS
Playlists/SyncOptions-Kents Stereo-80_1f_02_da_61_cb.m3u id:225239
playlist:SyncOptions-Kents Stereo-b8 27 eb fc e6 d2
url:file:///volume2/music/LMS Playlists/SyncOptions-Kents
Stereo-b8_27_eb_fc_e6_d2.m3u id:225240 playlist:SyncOptions-Upstairs
MBR-Bath-02 00 12 19 57 04 url:file:///volume2/music/LMS
Playlists/SyncOptions-Upstairs MBR-Bath-02_00_12_19_57_04.m3u id:240197
playlist:Szerelmes körtefa url:itunesplaylist:Szerelmes k%C3%B6rtefa
id:240199 playlist:Test url:file:///volume2/music/LMS Playlists/Test.m3u
id:240196 playlist:Top 25 Most Played url:itunesplaylist:Top 25 Most
Played count:35
playlist load Test
00:04:20:26:2a:19 playlist load/volume2/music/LMS Playlists/Test.m3u #
WORKS!
playlist clear
00:04:20:26:2a:19 playlist clear
playlistcontrol cmd:load playlist_name:Test
00:04:20:26:2a:19 playlistcontrol cmd:load playlist_name:Test count:4 #
WORKS!
playlist load Charles
00:04:20:26:2a:19 playlist load Charles # DOES NOT WORK! NOTICE LACK OF
PATH/URL ON RESPONSE OR COUNT

Using the LMS web UI which did play imported iTunes playlists, I noticed
that instead of using the "playlist" CLI command, it used the
"playlistcontrol cmd:load playlist_name" CLI command, so once I
substituted this command in my bash scripts everything started working!

playlistcontrol cmd:load playlist_name:Charles
00:04:20:26:2a:19 playlistcontrol cmd:load playlist_name:Charles
count:573 # WORKS! NOTICE # TRACKS IN RESPONSE

So, for those of you experiencing the same problem where iTunes imported
playlists work fine in the web UI, but don't load via the CLI, the above
is your solution...

Hope this saves someone time and headache...


------------------------------------------------------------------------
htcheng's Profile: http://forums.slimdevices.com/member.php?userid=63674
View this thread: http://forums.slimdevices.com/showthread.php?t=109868

_______________________________________________
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to