diff --git a/guessit.go b/guessit.go index fddfcba..62b34d0 100644 --- a/guessit.go +++ b/guessit.go @@ -122,6 +122,10 @@ func (g Guessit) Guessit(s string, options ...string) (out Match, err error) { } } + if _, ok := tmpmap["version"]; !ok { + tmpmap["version"] = -1 + } + config := &mapstructure.DecoderConfig{ WeaklyTypedInput: true, Result: &out,