diff --git a/README.md b/README.md index a926ffb..d27128f 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # guessit-go -``` -python3 -m pip install -U nuitka +``` go +guessit, err := New(GuessitConfig{ + Pip: true, +}) -git clone https://github.com/guessit-io/guessit.git - -nuitka3 --output-filename=guessit /path/to/guessit +match := guessit.Guessit("Treme.1x03.Right.Place,.Wrong.Time.HDTV.XviD-NoTV.avi") ``` \ No newline at end of file diff --git a/guessit.go b/guessit.go index 69d07b1..ec39455 100644 --- a/guessit.go +++ b/guessit.go @@ -44,7 +44,7 @@ type Match struct { } func (g GuessitConfig) PipInstall() (err error) { - args := []string{"-m", "pip", "install", "guessit3"} + args := []string{"-m", "pip", "install", "guessit"} cmd := exec.Command(g.Python, args...) cmdout, err := cmd.Output() diff --git a/guessit_test.go b/guessit_test.go index add76e6..379ae05 100644 --- a/guessit_test.go +++ b/guessit_test.go @@ -7,8 +7,7 @@ import ( ) func TestGuessit(t *testing.T) { - g, err := New(GuessitConfig{ - Git: false, + guessit, err := New(GuessitConfig{ Pip: true, }) @@ -27,6 +26,6 @@ func TestGuessit(t *testing.T) { } for _, s := range ss { - fmt.Println(g.Guessit(s, "--excludes=season")) + fmt.Println(guessit.Guessit(s)) //, "--excludes=season")) } }