Fixed the image search links

This commit is contained in:
Eduard Urbach 2018-03-20 16:53:23 +01:00
parent aa38a1461f
commit ac46adb77f
5 changed files with 10 additions and 8 deletions

View File

@ -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
},

View File

@ -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")

View File

@ -51,7 +51,7 @@ func Genres(ctx *aero.Context) string {
"Anime without genres",
missing,
count,
"/editor/anime/missing/genres",
ctx.URI(),
nil,
))
}

View File

@ -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/")

View File

@ -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
},