fixup! Dont embed python, but use python -m guessit.
parent
5af4fca840
commit
590df025aa
10
README.md
10
README.md
|
@ -1,9 +1,9 @@
|
||||||
# guessit-go
|
# guessit-go
|
||||||
|
|
||||||
```
|
``` go
|
||||||
python3 -m pip install -U nuitka
|
guessit, err := New(GuessitConfig{
|
||||||
|
Pip: true,
|
||||||
|
})
|
||||||
|
|
||||||
git clone https://github.com/guessit-io/guessit.git
|
match := guessit.Guessit("Treme.1x03.Right.Place,.Wrong.Time.HDTV.XviD-NoTV.avi")
|
||||||
|
|
||||||
nuitka3 --output-filename=guessit /path/to/guessit
|
|
||||||
```
|
```
|
|
@ -44,7 +44,7 @@ type Match struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (g GuessitConfig) PipInstall() (err error) {
|
func (g GuessitConfig) PipInstall() (err error) {
|
||||||
args := []string{"-m", "pip", "install", "guessit3"}
|
args := []string{"-m", "pip", "install", "guessit"}
|
||||||
cmd := exec.Command(g.Python, args...)
|
cmd := exec.Command(g.Python, args...)
|
||||||
cmdout, err := cmd.Output()
|
cmdout, err := cmd.Output()
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGuessit(t *testing.T) {
|
func TestGuessit(t *testing.T) {
|
||||||
g, err := New(GuessitConfig{
|
guessit, err := New(GuessitConfig{
|
||||||
Git: false,
|
|
||||||
Pip: true,
|
Pip: true,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -27,6 +26,6 @@ func TestGuessit(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, s := range ss {
|
for _, s := range ss {
|
||||||
fmt.Println(g.Guessit(s, "--excludes=season"))
|
fmt.Println(guessit.Guessit(s)) //, "--excludes=season"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue