Skip to content

Commit

Permalink
Change number of search results
Browse files Browse the repository at this point in the history
Previously 1, increased to 5 in case the first few results are not
png|jpg.
  • Loading branch information
boppreh committed Dec 9, 2014
1 parent e37485e commit 29cdd76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions download.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import (
// When all else fails, Google it. Uses the regular web interface. There are
// two image search APIs, but one is deprecated and doesn't support exact size
// matching, and the other requires an API key limited to 100 searches a day.
// Notice num=1, so we get a single result and don't waste their processors.
const googleSearchFormat = `https://www.google.com.br/search?tbs=isz%3Aex%2Ciszw%3A460%2Ciszh%3A215&tbm=isch&num=1&q=`
const googleSearchFormat = `https://www.google.com.br/search?tbs=isz%3Aex%2Ciszw%3A460%2Ciszh%3A215&tbm=isch&num=5&q=`

// Returns the first steam grid image URL found by Google search of a given
// game name.
Expand Down

0 comments on commit 29cdd76

Please sign in to comment.