Compare commits

..

2 Commits

3 changed files with 8 additions and 9 deletions

View File

@ -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")
```

View File

@ -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()

View File

@ -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"))
}
}