2016-11-19 23:54:31 +09:00
|
|
|
package genres
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/aerogo/aero"
|
2016-11-20 04:53:33 +09:00
|
|
|
"github.com/animenotifier/arn"
|
2016-11-19 23:54:31 +09:00
|
|
|
"github.com/animenotifier/notify.moe/components"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Get ...
|
|
|
|
func Get(ctx *aero.Context) string {
|
2017-11-30 01:47:12 +01:00
|
|
|
var genres []string
|
2016-11-20 04:53:33 +09:00
|
|
|
|
2017-11-30 01:47:12 +01:00
|
|
|
for _, genre := range arn.Genres {
|
2017-11-30 02:59:19 +01:00
|
|
|
if genre == "Hentai" {
|
2016-11-20 19:26:11 +09:00
|
|
|
continue
|
|
|
|
}
|
|
|
|
|
2017-11-30 01:47:12 +01:00
|
|
|
genres = append(genres, genre)
|
2016-11-20 04:53:33 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
return ctx.HTML(components.Genres(genres))
|
2016-11-19 23:54:31 +09:00
|
|
|
}
|