2021-11-19 13:22:44 +00:00
|
|
|
package guessit
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
2023-05-25 05:00:03 +00:00
|
|
|
"log"
|
2021-11-19 13:22:44 +00:00
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestGuessit(t *testing.T) {
|
2023-05-25 05:00:03 +00:00
|
|
|
g, err := New(GuessitConfig{
|
|
|
|
Git: false,
|
|
|
|
Pip: true,
|
|
|
|
})
|
|
|
|
|
2021-11-19 13:22:44 +00:00
|
|
|
if err != nil {
|
2023-05-25 05:00:03 +00:00
|
|
|
log.Fatal(err)
|
2021-11-19 13:22:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ss := []string{
|
|
|
|
"[Erai-raws] Higurashi no Naku Koro ni Sotsu - 10 [1080p][Multiple Subtitle][399C5F90].mkv",
|
|
|
|
"[Erai-raws] Mushoku Tensei - Isekai Ittara Honki Dasu 2nd Season - 02 [720p][Multiple Subtitle][F007740E].mkv",
|
|
|
|
"[Erai-raws] Mushoku Tensei - Isekai Ittara Honki Dasu 2nd Season - 02 [1080p][Multiple Subtitle][E01C54A7].mkv",
|
|
|
|
"[Erai-raws] Mushoku Tensei - Isekai Ittara Honki Dasu 2nd Season - 02 [540p][Multiple Subtitle][AD741AB5].mkv",
|
|
|
|
"[Erai-raws] Heike Monogatari - 09 [1080p][Multiple Subtitle][7F5DD3FC].mkv",
|
|
|
|
"[Erai-raws] Heike Monogatari - 09 [v2][1080p][Multiple Subtitle][AA480C23].mkv",
|
|
|
|
"Loki.S01E05.INTERNAL.HDR.DDP5.1.Atmos.2160p.WEB.H265-EXPLOIT.torrent",
|
|
|
|
}
|
|
|
|
|
|
|
|
for _, s := range ss {
|
2023-05-25 05:00:03 +00:00
|
|
|
fmt.Println(g.Guessit(s, "--excludes=season"))
|
2021-11-19 13:22:44 +00:00
|
|
|
}
|
|
|
|
}
|