21 lines
404 B
Go
Raw Normal View History

2018-03-22 21:26:52 +00:00
package filteranime
import (
"github.com/aerogo/aero"
"github.com/animenotifier/arn"
)
// MAL ...
2019-06-01 04:55:49 +00:00
func MAL(ctx aero.Context) error {
2018-03-22 21:26:52 +00:00
return editorList(
ctx,
"Anime without MAL mappings",
func(anime *arn.Anime) bool {
return anime.GetMapping("myanimelist/anime") == ""
},
func(anime *arn.Anime) string {
return "https://myanimelist.net/anime.php?q=" + anime.Title.Canonical
},
)
}