2018-03-22 19:15:21 +00:00
|
|
|
package filteranime
|
2017-07-08 19:11:03 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/aerogo/aero"
|
|
|
|
"github.com/animenotifier/arn"
|
|
|
|
)
|
|
|
|
|
2017-10-02 12:56:51 +00:00
|
|
|
// AniList ...
|
2019-06-01 04:55:49 +00:00
|
|
|
func AniList(ctx aero.Context) error {
|
2018-03-22 21:26:52 +00:00
|
|
|
return editorList(
|
|
|
|
ctx,
|
2018-03-22 19:15:21 +00:00
|
|
|
"Anime without Anilist mappings",
|
2018-03-22 21:26:52 +00:00
|
|
|
func(anime *arn.Anime) bool {
|
|
|
|
return anime.GetMapping("anilist/anime") == ""
|
|
|
|
},
|
2018-03-07 20:25:24 +00:00
|
|
|
func(anime *arn.Anime) string {
|
2018-09-30 12:55:27 +00:00
|
|
|
return "https://anilist.co/search/anime?sort=SEARCH_MATCH&search=" + anime.Title.Canonical
|
2018-03-07 20:25:24 +00:00
|
|
|
},
|
2018-03-22 21:26:52 +00:00
|
|
|
)
|
2017-07-08 19:11:03 +00:00
|
|
|
}
|