View Issue Details

IDProjectCategoryView StatusLast Update
0006759MMW v4Framework: Scripts/Extensionspublic2010-11-30 12:27
Reporterzvezdan Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Summary0006759: ISDBAlbum::Name is read-only property, althought it is stated as read/write; problem with ISDBSongData::AlbumName
DescriptionSDBSongData.AlbumName = xxx works (maybe not as we expect), but SDBSongData.Album.Name = xxx doesn't work at all. You see, we have a big problem to just rename the album name. If I use SDBSongData.AlbumName = xxx, the program creates a new album with the specified name, instead to rename the existing album name. So, I though to use SDBSongData.Album.Name = xxx to just rename the album, but as I said that property is read-only.
Steps To ReproduceOption 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
    Dim oAlbum

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

Relationships

related to 0006760 new ISDBArtist::Name is read-only property, althought it is stated as read/write; problem with ISDBSongData::ArtistName 
related to 0006780 new ISDBSongData::AlbumName cause albums with zero tracks 

Activities

There are no notes attached to this issue.