Hydrogenaudio Forums

Hosted Forums => foobar2000 => Development - (fb2k) => Topic started by: hyperblast on 2018-07-21 15:53:00

Title: Proper usage of album_art_manager
Post by: hyperblast on 2018-07-21 15:53:00
Hello,

I'm trying to use album_art_manager to fetch album artwork, basically it works but I have some questions regarding its proper usage.
I don't need anything special regarding artwork, just the front cover based on user preferred sources.

Algorithm is the following:

Currently everything is done in the main UI thread, but I think this shouldn't be. Probably steps 2 and 3 could be moved to separate thread or only step 3?

Does album_art_manager_v2::open() always returns something (not NULL)? or should I check for such case as well?

album_art_extractor_instance_v2 also supports query_paths() method, should I try it in addition to query() to reach all possible artwork sources? Or is this done automatically?

SimplePortal 1.0.0 RC1 © 2008-2019