Sample script request: read nested playlists

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
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: Sample script request: read nested playlists

Re: Sample script request: read nested playlists

by chrisjj » Wed Oct 12, 2016 9:24 pm

Here it is.

Code: Select all

Dim s:s=""
DIM list: SET list = SDB.PlaylistByID(SDB.MainTree.CurrentNode.RelatedObjectID)

S = s & vbCrLf & list.Title & " has tracks qty " & list.Tracks.Count

DIM i,c
FOR i=0 TO list.ChildPlaylists.Count-1		
	SET c = list.ChildPlaylists.Item(i)
	s = s & vbCrLf & " " & c.Title & " has tracks qty " & c.Tracks.Count
NEXT

MsgBox s
Example output:

Image

Key API info:

http://www.mediamonkey.com/wiki/index.p ... urrentNode
http://www.mediamonkey.com/wiki/index.p ... edObjectID
http://www.mediamonkey.com/wiki/index.p ... aylistByID
http://www.mediamonkey.com/wiki/index.p ... dPlaylists

Still seeking sample script to read nested playlists

by chrisjj » Thu Sep 01, 2016 6:02 am

Does anyone have a simple sample script to show me how to read nested playlists?

Thanks.

Re: Sample script request: read nested playlists

by chrisjj » Mon Apr 25, 2016 7:29 am

Thanks V. I don't recognise these options as existing anywhere in MM and Google does not find.

However, what I'm asking for is a sample script to read nested playlists, and your procedure does not seem to be that.

Re: Sample script request: read nested playlists

by veronika19 » Mon Apr 25, 2016 6:07 am

When the Nested Playlist is showing you will firstly need to give your Nested Playlist a name.

When you have added a name, you will be asked to select a Playlist to Insert and will be need to select whether you would like to:

a) Generate Empty Playlist or
b) Use Existing one.

You can either select the Generate Empty Playlist option then your nested playlist will start as a blank template. If you select the Use Existing Playlist,then you will be presented with the following Select Playlist feature and can use the search to find any playlist as per your requirement.

Acrobat Marketing Derby

Sample script request: read nested playlists

by chrisjj » Sat Apr 09, 2016 8:31 am

Does anyone have a simple sample script to show me how to read nested playlists?

Must handle same-named siblings properly.

This may be not a simple as it seems. MM's own Export all Playlists fails http://www.mediamonkey.com/forum/viewto ... =6&t=58577 . Though Zvezdan Dimitrijevic's Export/Import Playlists succeeds, it is obfuscated and so not suitable as a sample.

Top