Compare commits
2 Commits
08a66a905f
...
6bb6523048
Author | SHA1 | Date |
---|---|---|
steino | 6bb6523048 | |
Stein Ivar Berghei | 590df025aa |
10
README.md
10
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")
|
||||
```
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -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"))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue