This commit introduces a new boolean configuration setting called
"extract-metadata" which disables harvesting completely. If not
configured, it defaults to "false"
This will also renders virtual folders useless since those are based on
metadata.
}
public static MetadataExtractor? create() {
- if (factory == null) {
- debug ("Checking for gstreamer element 'playbin'...");
+ var config = MetaConfig.get_default ();
+ bool extract_metadata;
+
+ try {
+ extract_metadata = config.get_bool ("MediaExport",
+ "extract-metadata");
+ } catch (Error error) {
+ extract_metadata = false;
+ }
+
+ if (factory == null && extract_metadata) {
+ debug ("Checking for gstreamer element 'playbin'..."));
var factory = ElementFactory.find("playbin2");
if (factory != null) {
debug (_("Using playbin2"));