HydrogenAudio

Hosted Forums => foobar2000 => Development - (fb2k) => Topic started by: neothe0ne on 2013-01-30 23:26:48

Title: Possible to parse tags and split multi-value by custom delimiters?
Post by: neothe0ne on 2013-01-30 23:26:48
I must admit I have not studied the SDK.  Still, I wonder if anyone can answer my questions:

1)  Is it possible to put custom code between foobar2000's reading of file tags and insertion of those tags into the "database"?  E.g., if I have an artist "Bob vs. Joe", could I write code which would recognize " vs. " and insert into foobar2000 the two artists "Bob" and "Joe", instead of a single artist "Bob vs. Joe"?

2)  If not (1), could I define my own %NEWARTIST% variable available in other components e.g. search, facets,  by writing a component to do that custom parsing?


I wonder mostly for the sake of m4a tags which don't have official multi-value support in iTunes.
Title: Possible to parse tags and split multi-value by custom delimiters?
Post by: foosion on 2013-02-16 11:59:54
2)  If not (1), could I define my own %NEWARTIST% variable available in other components e.g. search, facets,  by writing a component to do that custom parsing?
This is possible by implementing a metadb_display_field_provider (http://foosion.foobar2000.org/doxygen/latest/classmetadb__display__field__provider.html). Hooking tag parsing for arbitrary formats is not possible.