mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +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()
|
||||
m := maps[uint32(id)]
|
||||
k := strings.ToLower(C.GoString(key))
|
||||
v := C.GoString(val)
|
||||
m[k] = v
|
||||
if _, ok := m[k]; !ok {
|
||||
v := C.GoString(val)
|
||||
m[k] = v
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue