View Issue Details

IDProjectCategoryView StatusLast Update
0011300MMW v4Framework: Scripts/Extensionspublic2013-09-19 12:31
Reporterzvezdan Assigned To 
PrioritynoneSeverityfeatureReproducibilityN/A
Status newResolutionopen 
Summary0011300: ISDBApplication::NodeByPlaylist method needed
DescriptionIn my several scripts I need to find which is the Node object for a given Playlist object. I am using some rather complicated code with recursions, but it would be much better if you have added the suggested method so we could write something like this:

Set SDB.MainTree.CurrentNode = SDB.NodeByPlaylist(oPlaylist)

or, if I have just playlist's ID:
Set SDB.MainTree.CurrentNode = SDB.NodeByPlaylist(SDB.PlaylistByID(iPlsID))

Well, if you want to be really generous, you could expand the suggested method to something like SDB.NodeByObjectID(iID, iTypeOfObject) where iTypeOfObject could be e.g.:
0 - playlist;
1 - artist;
2 - album;
...

Or, even better, maybe you could determine the type of object in your code, so we could just write something like SDB.NodeByObject(oPlaylist) or SDB.NodeByObject(oAlbum)...

Actually, I am not asking this without a reason. I have also some scripts that are trying to find the Album node in the Album branch for a given name, but such thing is much easier than to find the playlist, since all Album nodes are on single level, while playlists could be nested.
TagsNo tags attached.
Fixed in build

Relationships

related to 0011299 closedLudek ISDBPlaylist::Delete doesn't remove node from the tree 

Activities

There are no notes attached to this issue.