Compare commits

..

No commits in common. "master" and "v0.0.14" have entirely different histories.

1 changed files with 1 additions and 3 deletions

View File

@ -15,7 +15,6 @@ type GuessitConfig struct {
type Guessit struct { type Guessit struct {
GuessitConfig GuessitConfig
DefaultOptions []string
} }
type Match struct { type Match struct {
@ -106,12 +105,11 @@ func New(conf GuessitConfig) (Guessit, error) {
} }
} }
return Guessit{conf, []string{}}, nil return Guessit{conf}, nil
} }
func (g Guessit) Guessit(s string, options ...string) (out Match, err error) { func (g Guessit) Guessit(s string, options ...string) (out Match, err error) {
args := []string{"-m", "guessit", s} args := []string{"-m", "guessit", s}
args = append(args, g.DefaultOptions...)
args = append(args, options...) args = append(args, options...)
args = append(args, "--json") args = append(args, "--json")