parent
b81c62af15
commit
7d34e678ac
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue