mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 13:07:36 +03:00
Get the first occurrence of multi-valued tags
This commit is contained in:
parent
a1879ff871
commit
78ecda5239
1 changed files with 4 additions and 2 deletions
|
@ -111,6 +111,8 @@ func go_map_put(id C.ulong, key *C.char, val *C.char) {
|
||||||
defer lock.RUnlock()
|
defer lock.RUnlock()
|
||||||
m := maps[uint32(id)]
|
m := maps[uint32(id)]
|
||||||
k := strings.ToLower(C.GoString(key))
|
k := strings.ToLower(C.GoString(key))
|
||||||
v := C.GoString(val)
|
if _, ok := m[k]; !ok {
|
||||||
m[k] = v
|
v := C.GoString(val)
|
||||||
|
m[k] = v
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue