From 7d34e678ace9e7aaca1f0e48bf686c83668eae5d Mon Sep 17 00:00:00 2001 From: Stein Ivar Berghei Date: Fri, 11 Aug 2023 18:55:10 +0200 Subject: [PATCH] Actually support Other fully. --- guessit.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/guessit.go b/guessit.go index 2903527..b48be62 100644 --- a/guessit.go +++ b/guessit.go @@ -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