diff --git a/pages/anime/anime.pixy b/pages/anime/anime.pixy index aef8d619..b84bd84d 100644 --- a/pages/anime/anime.pixy +++ b/pages/anime/anime.pixy @@ -36,7 +36,7 @@ component AnimeSideColumn(anime *arn.Anime, friends []*arn.User, listItems map[* AnimeRatings(anime, user) AnimePopularity(anime) AnimeFriends(friends, listItems) - AnimeLinks(anime) + AnimeLinks(anime, user) component AnimeActions(anime *arn.Anime, listItem *arn.AnimeListItem, user *arn.User) if user != nil @@ -118,7 +118,7 @@ component AnimePopularity(anime *arn.Anime) td.anime-info-key Dropped: td.anime-info-value= anime.Popularity.Dropped -component AnimeLinks(anime *arn.Anime) +component AnimeLinks(anime *arn.Anime, user *arn.User) section.anime-section.mountable h3.anime-section-name Links .light-button-group @@ -135,6 +135,10 @@ component AnimeLinks(anime *arn.Anime) a.light-button(href=mapping.Link(), target="_blank", rel="noopener") Icon("external-link") span= mapping.Name() + + a.light-button(href="https://www.google.com/search?btnI=745&q=" + anime.Title.ByUser(user) + "+TV+series+site%3Aen.wikipedia.org", target="_blank", rel="noopener") + Icon("wikipedia-w") + span Wikipedia component AnimeGenres(anime *arn.Anime) .anime-genres diff --git a/patches/add-mal-fields/add-mal-fields.go b/patches/add-mal-fields/add-mal-fields.go deleted file mode 100644 index 729e4c81..00000000 --- a/patches/add-mal-fields/add-mal-fields.go +++ /dev/null @@ -1,48 +0,0 @@ -package main - -import ( - "fmt" - "strings" - - "github.com/animenotifier/arn" - "github.com/animenotifier/mal" - "github.com/fatih/color" -) - -func main() { - defer arn.Node.Close() - - count := 0 - - for anime := range arn.StreamAnime() { - malID := anime.GetMapping("myanimelist/anime") - - if malID == "" { - continue - } - - malAnimeObj, err := arn.MAL.Get("Anime", malID) - - if err != nil { - continue - } - - malAnime := malAnimeObj.(*mal.Anime) - - fmt.Println(anime.Source) - - anime.Source = strings.ToLower(malAnime.Source) - - if anime.Source == "Unknown" { - anime.Source = "" - } - - anime.Save() - - count++ - - fmt.Println(anime.ID, anime, anime.Source) - } - - color.Green("Processed %d anime", count) -}