getmusicbee.com

Support => Developers' Area => MusicBee API => Topic started by: Mayibongwe on October 27, 2022, 11:00:18 PM

Title: Enhancement To Existing Artwork API Calls
Post by: Mayibongwe on October 27, 2022, 11:00:18 PM
Currently, it appears that artwork retrieval functions return a null whenever there isn't any artwork linked to a track file.

Instead of returning nothing, would it be possible to return the "No Artwork" image that is provided by skins?
And in case of artist pictures, returning the "Unknown Artist" image instead?
Title: Re: Enhancement To Existing Artwork API Calls
Post by: Steven on October 29, 2022, 08:30:07 AM
I prefer not to change the behavior of the existing artwork api call, so a new function get get the no artwork image has been created. Just the no artwork album cover is supported for now.
https://getmusicbee.com/patches/MusicBee35_Patched.zip

Using this updated interface file
https://getmusicbee.com/download/plugins/MusicBeeInterface.cs
call
Library_GetNoArtworkUrl(0)

Title: Re: Enhancement To Existing Artwork API Calls
Post by: Mayibongwe on October 29, 2022, 02:32:10 PM
Working great, thanks Steven!
Looking forward to also having the unknown artist image some day - but for now this will do, much appreciated.
Title: Re: Enhancement To Existing Artwork API Calls
Post by: Steven on October 30, 2022, 09:08:37 AM
Library_GetNoArtworkUrl(1) to the the artist thumb
https://getmusicbee.com/patches/MusicBee35_Patched.zip