Author Topic: Enhancement To Existing Artwork API Calls  (Read 2873 times)

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1084
  • Heal The World
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?
I already spend hours on end on social media. Might as well spare a few of those to a greater purpose here.

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34405
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)


Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1084
  • Heal The World
Working great, thanks Steven!
Looking forward to also having the unknown artist image some day - but for now this will do, much appreciated.
I already spend hours on end on social media. Might as well spare a few of those to a greater purpose here.