musikr: dont produce tag maps w/empty values
This commit is contained in:
@@ -60,6 +60,10 @@ void JVMTagMap::add(TagLib::String &key, std::string_view value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void JVMTagMap::add(TagLib::String &key, TagLib::StringList &value) {
|
void JVMTagMap::add(TagLib::String &key, TagLib::StringList &value) {
|
||||||
|
if (value.isEmpty()) {
|
||||||
|
// Nothing to add
|
||||||
|
return;
|
||||||
|
}
|
||||||
jstring jKey = env->NewStringUTF(key.toCString(true));
|
jstring jKey = env->NewStringUTF(key.toCString(true));
|
||||||
|
|
||||||
// check if theres already a value arraylist in the map
|
// check if theres already a value arraylist in the map
|
||||||
|
|||||||
Reference in New Issue
Block a user