musikr: dont produce tag maps w/empty values

This commit is contained in:
Alexander Capehart
2024-12-17 16:27:25 -05:00
parent 7b1ccfc3fb
commit 03ee8d299d
+4
View File
@@ -60,6 +60,10 @@ void JVMTagMap::add(TagLib::String &key, std::string_view value) {
}
void JVMTagMap::add(TagLib::String &key, TagLib::StringList &value) {
if (value.isEmpty()) {
// Nothing to add
return;
}
jstring jKey = env->NewStringUTF(key.toCString(true));
// check if theres already a value arraylist in the map