Fixed the image search links
This commit is contained in:
parent
aa38a1461f
commit
ac46adb77f
@ -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
|
||||
},
|
||||
|
@ -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")
|
||||
|
@ -51,7 +51,7 @@ func Genres(ctx *aero.Context) string {
|
||||
"Anime without genres",
|
||||
missing,
|
||||
count,
|
||||
"/editor/anime/missing/genres",
|
||||
ctx.URI(),
|
||||
nil,
|
||||
))
|
||||
}
|
||||
|
@ -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/")
|
||||
|
@ -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
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user