Added prefetching
This commit is contained in:
parent
76e5f37eca
commit
0bcab02262
3
main.go
3
main.go
@ -207,6 +207,9 @@ func configure(app *aero.Application) *aero.Application {
|
||||
middleware.UserInfo(),
|
||||
)
|
||||
|
||||
// Database
|
||||
arn.DB.LoadCollections()
|
||||
|
||||
// API
|
||||
arn.API.Install(app)
|
||||
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
for anime := range arn.MustStreamAnime() {
|
||||
for anime := range arn.StreamAnime() {
|
||||
if anime.NSFW == 1 || anime.Status != "current" || anime.StartDate == "" || anime.StartDate < "2017-09" || anime.StartDate > "2017-10-17" {
|
||||
continue
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user