cleanup
This commit is contained in:
parent
3d47c80446
commit
49f613ddeb
15 changed files with 98 additions and 234 deletions
|
@ -152,11 +152,12 @@ func PerformDeviantArtImageSearch(query, safe, lang string, page int) ([]ImageSe
|
|||
if isValidImageURL(imgSrc, DeviantArtImageUserAgent, resultURL) {
|
||||
resultsChan <- ImageSearchResult{
|
||||
Title: strings.TrimSpace(title),
|
||||
Media: imgSrc,
|
||||
Full: imgSrc,
|
||||
Width: 0,
|
||||
Height: 0,
|
||||
Source: resultURL,
|
||||
ThumbProxy: "/imgproxy?url=" + imgSrc,
|
||||
ProxyThumb: "/imgproxy?url=" + imgSrc, // Proxied thumbnail
|
||||
ProxyFull: "/imgproxy?url=" + imgSrc, // Proxied full-size image
|
||||
}
|
||||
}
|
||||
}(imgSrc, resultURL, title)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue