I want to add meta information (set a %tag% item) dynamically when a playlist item is loaded (or manually reloaded).
Therefore, when I tried adding the field by calling
CODE
pTrackHandle->handle_update_info(&fileInfo, true);
//(with pTrackHandle being a locked metadb_handle *)
//(with pTrackHandle being a locked metadb_handle *)
from a metadb_callback derived class (on_info_reloaded overloaded method)
I obtain the following error
QUOTE
ERROR (CORE) : Can't modify database from inside callbacks !
How should I do?
I thought about using a timer, however I want scripts/columns ui/etc. to be able use the tag. Same remark for using play_callback::on_playback_new_track
I think foo_tunes and foo_quicktag_sql implemented such a system (or was it manual sync?), but I've never succeeded in seeing it in action.
