home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
AlbumInfo.image is always empty
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ElSanto" data-source="post: 943849" data-attributes="member: 55638"><p>Hello,</p><p> </p><p>I am playing around with the MediaPortal API to get ready to write a fabalous plugin <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p>I tried out the music database and just created a list with all the albums on my MediaPortal.</p><p>When I now try to get the Cover of the selected AlbumInfo object, the AlbumInfo.Image property is always an empty String.</p><p>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 <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /></p><p></p><p>Sample Code:</p><p> </p><p>albums = new List<AlbumInfo>(4096);</p><p> MediaPortal.Music.Database.MusicDatabase.Instance.GetAllAlbums(ref albums);</p><p> </p><p> foreach (AlbumInfo info in albums)</p><p> {</p><p> LogServer.sharedLog().addLogMessage(info.Image);</p><p> }</p><p> </p><p> </p><p>Thank you in advance for any help !! <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="ElSanto, post: 943849, member: 55638"] 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 !! :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
AlbumInfo.image is always empty
Contact us
RSS
Top
Bottom