musikr: dont produce tag maps w/empty values
This commit is contained in:
parent
7b1ccfc3fb
commit
03ee8d299d
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue