View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006780 | MMW v4 | Framework: Scripts/Extensions | public | 2010-12-01 21:27 | 2010-12-01 21:33 |
Reporter | zvezdan | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Summary | 0006780: ISDBSongData::AlbumName cause albums with zero tracks | ||||
Description | ISDBSongData::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 Reproduce | 1. 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 Information | Option 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 | ||||
Tags | No tags attached. | ||||
Fixed in build | |||||
related to | 0006759 | new | ISDBAlbum::Name is read-only property, althought it is stated as read/write; problem with ISDBSongData::AlbumName |