View Issue Details

IDProjectCategoryView StatusLast Update
0006765MMW v4Framework: Scripts/Extensionspublic2010-11-30 17:17
Reporterzvezdan Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Summary0006765: ISDBSongData::AlbumName applied on track in My Computer adds second copy of track to database
DescriptionThis property should not add new track records to the Library, but it does.
Steps To Reproduce1. Copy supplied script to the Auto folder and restart program;
2. put some test audio file which is not already added to the Library to some empty folder which doesn't have any subfolder;
3. find that folder in My Computer branch;
4. right-click on that folder and choose Add/Rescan tracks to the Library;
5. after folder is added, select its track in tracklist;
6. choose Edit / Append album length to album name;
7. go to Location node and find that folder -> there are two same tracks with different album names.

Now, remove that track from the Library and repeat 3-4, then:
5. go to Location node, find added folder and select its track in tracklist;
6. choose Edit / Append album length to album name -> new track is not added, i.e. only existing track is modified.
Additional InformationOption Explicit

Sub OnStartup()
    Dim oMenuItem

    Set oMenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_Edit, 0, 0)
    oMenuItem.Caption = "Append album length to album name"
    oMenuItem.UseScript = Script.ScriptPath
    oMenuItem.OnClickFunc = "AppendAL"
End Sub

Sub AppendAL(oItem)
    Dim oSongData

    If SDB.SelectedSongList.Count > 0 Then
        Set oSongData = SDB.SelectedSongList.Item(0)
        oSongData.AlbumName = oSongData.AlbumName & " (" & oSongData.Album.AlbumLengthString & ")"
        oSongData.UpdateDB
        oSongData.UpdateAlbum
    End If
End Sub
TagsNo tags attached.
Fixed in build

Activities

There are no notes attached to this issue.