Is it possible to avoid the popup message that reads:
Could not load info (Unsupported file format) from:
<filepath>
Also, is it possible to make it so that the list of handles that comes back contains only items that are valid file types, or is there a function to filter the list afterward?
What I am trying to do is process all the items in a directory and create a list of all the valid handles without the popup message occuring... my former method of finding valid handles was this function, but I am thinking there might be a better way:
static bool useable_handle(metadb_handle_ptr handle)
{
if ( handle->get_length() > 0.00 )
return true;
if ( strstr(handle->get_path(),"http" ) )
return true;
return false;
}
This is how I am calling process_locations:
static_api_ptr_t<playlist_incoming_item_filter> p;
p->process_locations( file_list, list, true, 0, 0, m_hwnd_tree );