Merge remote-tracking branch 'upstream/master'

This commit is contained in:
JulioC 2015-04-09 14:31:54 -03:00
commit 2f5fbb755c

View File

@ -9,7 +9,7 @@ local API_KEY = 'dc6zaTOxFJmzC' -- public beta key
function get_image(response)
local images = json:decode(response).data
if #images == 0 then return nil end -- No images
local i = math.random(0,#images)
local i = math.random(1,#images)
local image = images[i] -- A random one
if image.images.downsized then
@ -72,4 +72,4 @@ return {
run = run
}
end
end