MAL progress fetch

This commit is contained in:
daru
2022-04-18 02:53:09 +02:00
parent 8fe7bf4d4b
commit 994bccb068
7 changed files with 125 additions and 18 deletions

View File

@@ -42,6 +42,7 @@ var (
seasoncache *bigcache.BigCache
userCache *bigcache.BigCache
searchCache *bigcache.BigCache
animeListCache *bigcache.BigCache
db *nutsdb.DB
)
@@ -76,6 +77,11 @@ func main() {
log.Fatal(err)
}
defer searchCache.Close()
animeListCache, err = bigcache.NewBigCache(bigcache.DefaultConfig(42 * time.Minute))
if err != nil {
log.Fatal(err)
}
defer animeListCache.Close()
nutsOpt := nutsdb.DefaultOptions
nutsOpt.Dir = "nuts"
@@ -93,8 +99,5 @@ func main() {
go RunWebserv()
//list, _, _ := GetUserAnimeListData("ultrasn0w", malApiStatusW)
//fmt.Printf("%+v\n", list)
<-sc
}