byte zu kilobyte

This commit is contained in:
Akamaru 2016-10-17 17:21:28 +02:00
parent 1808a007f4
commit e3f1969ca4

View File

@ -25,7 +25,7 @@ function ibSearch:get_ibSearch_sfw(tag)
local i = math.random(#data) local i = math.random(#data)
local url = 'https://im1.ibsear.ch/'..data[i].path local url = 'https://im1.ibsear.ch/'..data[i].path
local resolution = data[i].width..'x'..data[i].height..'px' local resolution = data[i].width..'x'..data[i].height..'px'
local size = ' '..data[i].size..'kb' local size = ' '..math.ceil(data[i].size/1000)..'kb'
local source_url = '\nhttps://ibsear.ch/images/'..data[i].id local source_url = '\nhttps://ibsear.ch/images/'..data[i].id
local text = resolution..size..source_url local text = resolution..size..source_url
return url, text return url, text
@ -40,7 +40,7 @@ function ibSearch:get_ibSearch_nsfw(tag)
local i = math.random(#data) local i = math.random(#data)
local url = 'https://im1.ibsearch.xxx/'..data[i].path local url = 'https://im1.ibsearch.xxx/'..data[i].path
local resolution = data[i].width..'x'..data[i].height..'px' local resolution = data[i].width..'x'..data[i].height..'px'
local size = ' '..data[i].size..'kb' local size = ' '..math.ceil(data[i].size/1000)..'kb'
local source_url = '\nhttps://ibsearch.xxx/images/'..data[i].id local source_url = '\nhttps://ibsearch.xxx/images/'..data[i].id
local text = resolution..size..source_url local text = resolution..size..source_url
return url, text return url, text