This commit is contained in:
partisan 2024-10-14 22:15:38 +02:00
parent 3d47c80446
commit 49f613ddeb
15 changed files with 98 additions and 234 deletions

View file

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