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",
|
"Anime without Anilist links",
|
||||||
missing,
|
missing,
|
||||||
count,
|
count,
|
||||||
"/editor/anime/missing/anilist",
|
ctx.URI(),
|
||||||
func(anime *arn.Anime) string {
|
func(anime *arn.Anime) string {
|
||||||
return "https://anilist.co/search?type=anime&q=" + anime.Title.Canonical
|
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("Companies", "building", "/editor/companies/missing/description")
|
||||||
Tab("Search", "search", "/database")
|
Tab("Search", "search", "/database")
|
||||||
|
|
||||||
if strings.Contains(url, "/editor/anime/missing/")
|
if strings.Contains(url, "/editor/anime/")
|
||||||
.tabs
|
.tabs
|
||||||
Tab("Shoboi", "list", "/editor/anime/missing/shoboi")
|
Tab("Shoboi", "list", "/editor/anime/missing/shoboi")
|
||||||
Tab("AniList", "list", "/editor/anime/missing/anilist")
|
Tab("AniList", "list", "/editor/anime/missing/anilist")
|
||||||
|
@ -51,7 +51,7 @@ func Genres(ctx *aero.Context) string {
|
|||||||
"Anime without genres",
|
"Anime without genres",
|
||||||
missing,
|
missing,
|
||||||
count,
|
count,
|
||||||
"/editor/anime/missing/genres",
|
ctx.URI(),
|
||||||
nil,
|
nil,
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
@ -48,13 +48,15 @@ func filterAnimeImages(ctx *aero.Context, title string, minExpectedWidth int, mi
|
|||||||
title,
|
title,
|
||||||
lowResAnime,
|
lowResAnime,
|
||||||
count,
|
count,
|
||||||
"/editor/anime/missing/hiresimage",
|
ctx.URI(),
|
||||||
func(anime *arn.Anime) string {
|
googleImageSearch,
|
||||||
return "https://www.google.com/search?q=" + anime.Title.Canonical + "&tbm=isch"
|
|
||||||
},
|
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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 ...
|
// // LowResolutionAnimeImages ...
|
||||||
// func LowResolutionAnimeImages(ctx *aero.Context) string {
|
// func LowResolutionAnimeImages(ctx *aero.Context) string {
|
||||||
// basePath := path.Join(arn.Root, "images/anime/original/")
|
// basePath := path.Join(arn.Root, "images/anime/original/")
|
||||||
|
@ -51,7 +51,7 @@ func Shoboi(ctx *aero.Context) string {
|
|||||||
"Anime without Shoboi links",
|
"Anime without Shoboi links",
|
||||||
missing,
|
missing,
|
||||||
count,
|
count,
|
||||||
"/editor/anime/missing/shoboi",
|
ctx.URI(),
|
||||||
func(anime *arn.Anime) string {
|
func(anime *arn.Anime) string {
|
||||||
return "http://cal.syoboi.jp/find?type=quick&sd=1&kw=" + anime.Title.Japanese
|
return "http://cal.syoboi.jp/find?type=quick&sd=1&kw=" + anime.Title.Japanese
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user