parent
b81c62af15
commit
7d34e678ac
|
@ -62,11 +62,11 @@ func (u *Match) UnmarshalJSON(data []byte) error {
|
||||||
u.AudioCodec = ac
|
u.AudioCodec = ac
|
||||||
}
|
}
|
||||||
|
|
||||||
switch oth := aux.AudioCodec.(type) {
|
switch oth := aux.Other.(type) {
|
||||||
case string:
|
case string:
|
||||||
u.AudioCodec = append(u.AudioCodec, oth)
|
u.Other = append(u.Other, oth)
|
||||||
case []string:
|
case []string:
|
||||||
u.AudioCodec = oth
|
u.Other = oth
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue