Hello,
I am playing around with the MediaPortal API to get ready to write a fabalous plugin
I tried out the music database and just created a list with all the albums on my MediaPortal.
When I now try to get the Cover of the selected AlbumInfo object, the AlbumInfo.Image property is always an empty String.
Does anyone have an idea what could be wrong? Or is there another way to retrieve the Cover art for an album? Is "Image" the right property? I miss documentation for that
Sample Code:
albums = new List<AlbumInfo>(4096);
MediaPortal.Music.Database.MusicDatabase.Instance.GetAllAlbums(ref albums);
foreach (AlbumInfo info in albums)
{
LogServer.sharedLog().addLogMessage(info.Image);
}
Thank you in advance for any help !!
I am playing around with the MediaPortal API to get ready to write a fabalous plugin
I tried out the music database and just created a list with all the albums on my MediaPortal.
When I now try to get the Cover of the selected AlbumInfo object, the AlbumInfo.Image property is always an empty String.
Does anyone have an idea what could be wrong? Or is there another way to retrieve the Cover art for an album? Is "Image" the right property? I miss documentation for that
Sample Code:
albums = new List<AlbumInfo>(4096);
MediaPortal.Music.Database.MusicDatabase.Instance.GetAllAlbums(ref albums);
foreach (AlbumInfo info in albums)
{
LogServer.sharedLog().addLogMessage(info.Image);
}
Thank you in advance for any help !!