How to get list of albums ? (BUG?) (1 Viewer)

andemat

Portal Member
November 14, 2006
6
0
Home Country
Norway Norway
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 :)
 

Users who are viewing this thread

Top Bottom