This commit is contained in:
Akamaru 2016-07-19 17:23:43 +02:00
parent f6c02d5efa
commit 99635d729b
2 changed files with 11 additions and 7 deletions

View File

@ -16,20 +16,24 @@ local function get_psn_info(id)
if not data then return "Nichts gefunden!" end
local title = data.title_name
local publish = data.provider_name
if data.provider_name then
publish = ' von '..data.provider_name
else
publish = ''
end
local system = data.playable_platform[1]
local type = data.gameContentTypesList[1].name
if data.skus[1].rewards[1] then
if data.skus[1].rewards[1].isPlus ~= true then
--[[if data.skus[1].rewards[1].isPlus ~= true then
psplus = ''
else
psplus = ' PS+ Exklusiv!'
end
end]]
price = data.skus[1].rewards[1].display_price..' statt '..data.default_sku.display_price..' (Spare '..data.skus[1].rewards[1].discount..'%)'..psplus
price = data.skus[1].rewards[1].display_price..' statt '..data.default_sku.display_price..' (Spare '..data.skus[1].rewards[1].discount..'%)'--..psplus
else
price = data.default_sku.display_price..psplus
price = data.default_sku.display_price--..psplus
end
local fsk = 'FSK'..data.age_limit
local description = string.sub(unescape(data.long_desc:gsub("%b<>", "")), 1, DESC_LENTH)..'...'
@ -40,7 +44,7 @@ local function get_psn_info(id)
image_url = data.images[1].url
end
local text = title..' von '..publish..' für '..system..' ['..type..']\nPreis: '..price..'\n'..fsk..'\n'..'Release: '..release..'\n\nBeschreibung:\n'..description
local text = title..publish..' für '..system..' ['..type..']\nPreis: '..price..'\n'..fsk..'\n'..'Release: '..release..'\n\nBeschreibung:\n'..description
return text, image_url

View File

@ -28,7 +28,7 @@ end
local function get_tumblr_video(data)
local caption = data.posts[1].caption
local video_url = data.posts[1].permalink_url
local video_url = data.posts[1].video_url
return caption, video_url
end