Hi!
I've been trying to get a list of all albums from my music database using:
MediaPortal.Music.Database.MusicDatabase.GetAlbums(ref List<AlbumInfo>) ,
but only Title(Album) + Artist is set, and IdAlbum is pointing to id of artist and not id of album so a call to GetAlbumInfo(id of album, ref...) won't work.
From Music/Database.cs:
album.IdAlbum = DatabaseUtility.GetAsInt(results, i, "album.idArtist");
Should it be changed to:
album.IdAlbum = DatabaseUtility.GetAsInt(results, i, "album.idAlbum"); ?
If not, what is the preferred way to get all music albums?
Thanks
I've been trying to get a list of all albums from my music database using:
MediaPortal.Music.Database.MusicDatabase.GetAlbums(ref List<AlbumInfo>) ,
but only Title(Album) + Artist is set, and IdAlbum is pointing to id of artist and not id of album so a call to GetAlbumInfo(id of album, ref...) won't work.
From Music/Database.cs:
album.IdAlbum = DatabaseUtility.GetAsInt(results, i, "album.idArtist");
Should it be changed to:
album.IdAlbum = DatabaseUtility.GetAsInt(results, i, "album.idAlbum"); ?
If not, what is the preferred way to get all music albums?
Thanks