files search added (wip)

This commit is contained in:
partisan 2024-05-23 10:56:26 +02:00
parent 585684f15b
commit 31460ee6be
13 changed files with 431 additions and 44 deletions

View file

@ -51,7 +51,7 @@ func fetchImageResults(query string, safe, lang string, page int) ([]ImageSearch
const resultsPerPage = 50
var offset int
if page <= 1 {
offset = 0 // Assuming the API expects offset to start from 0 for the first page
offset = 0
} else {
offset = (page - 1) * resultsPerPage
}