View Issue Details

IDProjectCategoryView StatusLast Update
0006705MMW v4Framework: Scripts/Extensionspublic2011-02-13 21:11
Reporterzvezdan Assigned To 
PriorityurgentSeverityminorReproducibilityN/A
Status closedResolutionfixed 
Fixed in Version4.0 
Summary0006705: ISDBPlaylist::RemoveTrackUnconditionally method needed
DescriptionWe need a method which could remove track from some playlist without asking for confirmation, e.g. "RemoveTrackUnconditionally" or just "DeleteTrack".
Additional Informationhttp://www.mediamonkey.com/forum/viewtopic.php?f=2&t=26650

The existing method RemoveTrack displays confirmation dialog box which is not always what we need. Currently, to remove track without confirmation dialog I am clearing playlist and re-adding all tracks except of unwanted one, which is far from efficient:

oPlaylist.Clear
oSongList.Delete 0
If SDB.VersionHi > 2 Then
    oPlaylist.AddTracks oSongList
Else
    For i = 0 To oSongList.Count - 1
        oPlaylist.AddTrack oSongList.Item(i)
    Next
End If

There is also a solution with SQL, but I don't want to use SQL for such task.
TagsNo tags attached.
Fixed in build1345

Activities

jiri

2010-11-24 14:20

administrator   ~0021450

I'd add RemoveTrackNoConfirmation() function for this purpose.

Ludek

2011-01-20 16:28

developer   ~0022496

Last edited: 2011-01-20 16:33

Fixed in build 1345:
http://www.mediamonkey.com/wiki/index.php/ISDBPlaylist::RemoveTrackNoConfirmation

peke

2011-02-13 21:11

developer   ~0023041

Verified 1348