info: hide empty XMP
This commit is contained in:
parent
211f803afe
commit
77cea1b7cb
1 changed files with 5 additions and 3 deletions
|
@ -163,9 +163,11 @@ class MetadataFetchHandler(private val context: Context) : MethodCallHandler {
|
||||||
}
|
}
|
||||||
// remove this stat as it is not actual XMP data
|
// remove this stat as it is not actual XMP data
|
||||||
dirMap.remove(XmpDirectory().getTagName(XmpDirectory.TAG_XMP_VALUE_COUNT))
|
dirMap.remove(XmpDirectory().getTagName(XmpDirectory.TAG_XMP_VALUE_COUNT))
|
||||||
// add schema prefixes for namespace resolution
|
if (dirMap.isNotEmpty()) {
|
||||||
val prefixes = XMPMetaFactory.getSchemaRegistry().prefixes
|
// add schema prefixes for namespace resolution
|
||||||
dirMap["schemaRegistryPrefixes"] = JSONObject(prefixes).toString()
|
val prefixes = XMPMetaFactory.getSchemaRegistry().prefixes
|
||||||
|
dirMap["schemaRegistryPrefixes"] = JSONObject(prefixes).toString()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val mp4UuidDirCount = HashMap<String, Int>()
|
val mp4UuidDirCount = HashMap<String, Int>()
|
||||||
|
|
Loading…
Reference in a new issue