View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0011300 | MMW v4 | Framework: Scripts/Extensions | public | 2013-09-19 12:31 | 2013-09-19 12:31 |
Reporter | zvezdan | Assigned To | |||
Priority | none | Severity | feature | Reproducibility | N/A |
Status | new | Resolution | open | ||
Summary | 0011300: ISDBApplication::NodeByPlaylist method needed | ||||
Description | In 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. | ||||
Tags | No tags attached. | ||||
Fixed in build | |||||