diff --git a/pages/editor/anilist.go b/pages/editor/anilist.go index b2404e13..38a76689 100644 --- a/pages/editor/anilist.go +++ b/pages/editor/anilist.go @@ -51,7 +51,7 @@ func AniList(ctx *aero.Context) string { "Anime without Anilist links", missing, count, - "/editor/anime/missing/anilist", + ctx.URI(), func(anime *arn.Anime) string { return "https://anilist.co/search?type=anime&q=" + anime.Title.Canonical }, diff --git a/pages/editor/editor.pixy b/pages/editor/editor.pixy index 9bca9e72..01b1958d 100644 --- a/pages/editor/editor.pixy +++ b/pages/editor/editor.pixy @@ -22,7 +22,7 @@ component EditorTabs(url string) Tab("Companies", "building", "/editor/companies/missing/description") Tab("Search", "search", "/database") - if strings.Contains(url, "/editor/anime/missing/") + if strings.Contains(url, "/editor/anime/") .tabs Tab("Shoboi", "list", "/editor/anime/missing/shoboi") Tab("AniList", "list", "/editor/anime/missing/anilist") diff --git a/pages/editor/genres.go b/pages/editor/genres.go index d3983d45..d03453fa 100644 --- a/pages/editor/genres.go +++ b/pages/editor/genres.go @@ -51,7 +51,7 @@ func Genres(ctx *aero.Context) string { "Anime without genres", missing, count, - "/editor/anime/missing/genres", + ctx.URI(), nil, )) } diff --git a/pages/editor/lowresimages.go b/pages/editor/lowresimages.go index d1d20876..92592f7e 100644 --- a/pages/editor/lowresimages.go +++ b/pages/editor/lowresimages.go @@ -48,13 +48,15 @@ func filterAnimeImages(ctx *aero.Context, title string, minExpectedWidth int, mi title, lowResAnime, count, - "/editor/anime/missing/hiresimage", - func(anime *arn.Anime) string { - return "https://www.google.com/search?q=" + anime.Title.Canonical + "&tbm=isch" - }, + ctx.URI(), + googleImageSearch, )) } +func googleImageSearch(anime *arn.Anime) string { + return "https://www.google.com/search?q=" + anime.Title.Canonical + "&tbm=isch&tbs=imgo:1,isz:lt,islt:qsvga" +} + // // LowResolutionAnimeImages ... // func LowResolutionAnimeImages(ctx *aero.Context) string { // basePath := path.Join(arn.Root, "images/anime/original/") diff --git a/pages/editor/shoboi.go b/pages/editor/shoboi.go index c5c46700..105d2633 100644 --- a/pages/editor/shoboi.go +++ b/pages/editor/shoboi.go @@ -51,7 +51,7 @@ func Shoboi(ctx *aero.Context) string { "Anime without Shoboi links", missing, count, - "/editor/anime/missing/shoboi", + ctx.URI(), func(anime *arn.Anime) string { return "http://cal.syoboi.jp/find?type=quick&sd=1&kw=" + anime.Title.Japanese },