View Issue Details

IDProjectCategoryView StatusLast Update
0006780MMW v4Framework: Scripts/Extensionspublic2010-12-01 21:33
Reporterzvezdan Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Summary0006780: ISDBSongData::AlbumName cause albums with zero tracks
DescriptionISDBSongData::AlbumName applied on single-track album creates the album with new name and keeps left old album with zero tracks. Such empty album should be removed by MM automatically.

After the restart of the program empty folder would disappear, but at first the empty folder could be confusing for users of the scripts, as it is reported here: http://www.mediamonkey.com/forum/viewtopic.php?p=277410#p277410
Steps To Reproduce1. Copy supplied script to the Auto folder and restart program;
2. find some artist in Artist branch who has some album with single track and expand his node to see his albums;
3. select that track from single-track album in tracklist;
4. choose Edit / Append album length to album name -> there would be created new album with new name and old album left without any track.
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

Relationships

related to 0006759 new ISDBAlbum::Name is read-only property, althought it is stated as read/write; problem with ISDBSongData::AlbumName 

Activities

There are no notes attached to this issue.