Actually support Other fully.

master v0.0.13
Stein Ivar Berghei 2023-08-11 18:55:10 +02:00
parent b81c62af15
commit 7d34e678ac
1 changed files with 3 additions and 3 deletions

View File

@ -62,11 +62,11 @@ func (u *Match) UnmarshalJSON(data []byte) error {
u.AudioCodec = ac
}
switch oth := aux.AudioCodec.(type) {
switch oth := aux.Other.(type) {
case string:
u.AudioCodec = append(u.AudioCodec, oth)
u.Other = append(u.Other, oth)
case []string:
u.AudioCodec = oth
u.Other = oth
}
return nil