Skip to content

Commit

Permalink
info: hide empty XMP
Browse files Browse the repository at this point in the history
  • Loading branch information
deckerst committed Oct 7, 2024
1 parent 211f803 commit 77cea1b
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,11 @@ class MetadataFetchHandler(private val context: Context) : MethodCallHandler {
}
// remove this stat as it is not actual XMP data
dirMap.remove(XmpDirectory().getTagName(XmpDirectory.TAG_XMP_VALUE_COUNT))
// add schema prefixes for namespace resolution
val prefixes = XMPMetaFactory.getSchemaRegistry().prefixes
dirMap["schemaRegistryPrefixes"] = JSONObject(prefixes).toString()
if (dirMap.isNotEmpty()) {
// add schema prefixes for namespace resolution
val prefixes = XMPMetaFactory.getSchemaRegistry().prefixes
dirMap["schemaRegistryPrefixes"] = JSONObject(prefixes).toString()
}
}

val mp4UuidDirCount = HashMap<String, Int>()
Expand Down

0 comments on commit 77cea1b

Please sign in to comment.