album_art_manager bug? |
This forum is for developer discussions only. If you have a problem / bug report / idea / feature request that isn't related to foobar2000 SDK, post it in an appropiate forum instead - tech support questions go to support forum, everything else goes to general forum.
All non-developer posts on this forum will be removed. Continued abuse of this forum will result in admin actions (warnings, account suspension).
![]() ![]() |
album_art_manager bug? |
Nov 18 2012, 19:31
Post
#1
|
|
|
Group: Members Posts: 8 Joined: 8-November 09 Member No.: 74757 |
I'm trying to use album_art_manager, however it only seems to work for embedded art. The documentation states
QUOTE //! The main difference between using album_art_manager_instance and calling album_art_extractor methods directly is that //! album_art_manager_instance will fall back to returning pictures found in the folder containing the specified media file //! in case requested album art entries can't be extracted from the media file itself. So I'd expect the query method to return cover art read from a file matching one of the search patterns set on Preferences/Display. My code basically looks like this: CODE pfc::string8 path; ... abort_callback_dummy abort; album_art_manager_instance_ptr aam = static_api_ptr_t<album_art_manager>()->instantiate(); album_art_data_ptr pdata; aam->open(path.get_ptr(), abort); try { pdata = aam->query(album_art_ids::cover_front, abort); } catch(...) { } The query call only succeeds for embedded cover art, exception_album_art_not_found is thrown otherwise. External cover art is displayed correctly in foobar's album art viewer, though. Moreover, query_stub_image does return the stub image set in the preferences. |
|
|
|
Nov 19 2012, 10:30
Post
#2
|
|
![]() Group: Admin Posts: 3226 Joined: 30-September 01 Member No.: 84 |
Please use album_art_manager_v2. Looks like the documentation wasn't properly updated when foobar2000 v1.0 changes were introduced.
-------------------- This job would be great if it wasn't for the users.
|
|
|
|
Nov 19 2012, 14:00
Post
#3
|
|
|
Group: Members Posts: 8 Joined: 8-November 09 Member No.: 74757 |
Ah, this seems to work fine, thanks.
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 22nd May 2013 - 21:01 |