Getting all AutoPlaylists and a SongList for each

Post a reply

Visual Confirmation

To prevent automated access and spam, you are required to confirm that you are human. Please place a check mark next to all images of monkeys or apes. If you cannot see any images, please contact the Board Administrator.

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Topic review
   

Expand view Topic review: Getting all AutoPlaylists and a SongList for each

Re: Getting all AutoPlaylists and a SongList for each

Post by gideonrv » Mon Jun 06, 2011 4:54 am

Thanks, it works. Just use SDB.PlaylistByTitle[""].ChildPlaylists;

Re: Getting all AutoPlaylists and a SongList for each

Post by mcow » Wed May 25, 2011 1:04 pm

What about something like this?

lists = SDB.PlaylistByTitle("").ChildPlaylists;

If you're using nested lists, you'll need to check each item in the returned list to see if has children.

Re: Getting all AutoPlaylists and a SongList for each

Post by gideonrv » Tue May 24, 2011 12:26 pm

Since I haven't got a reply yet, I tried to connect to the MM database, but I couldn't compose a proper query, because the table PlaylistSongs is always empty.

There's a workabout: To export the AutoPlaylist to an m3u playlist, and to read that one in my application. However, by doing this I'll lose the auto shuffle mechanism.

Can anybody help?

Getting all AutoPlaylists and a SongList for each

Post by gideonrv » Sun May 22, 2011 5:09 am

I write a C# application that uploads songs from an AutoPlaylist to a radio station playlist.

How can I get a list of all AutoPlaylists and a list of all songs for each? The documentation is not clear enough.

Top