Fixes
This commit is contained in:
parent
f6c02d5efa
commit
99635d729b
@ -16,20 +16,24 @@ local function get_psn_info(id)
|
|||||||
if not data then return "Nichts gefunden!" end
|
if not data then return "Nichts gefunden!" end
|
||||||
|
|
||||||
local title = data.title_name
|
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 system = data.playable_platform[1]
|
||||||
local type = data.gameContentTypesList[1].name
|
local type = data.gameContentTypesList[1].name
|
||||||
if data.skus[1].rewards[1] then
|
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 = ''
|
psplus = ''
|
||||||
else
|
else
|
||||||
psplus = ' PS+ Exklusiv!'
|
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
|
else
|
||||||
price = data.default_sku.display_price..psplus
|
price = data.default_sku.display_price--..psplus
|
||||||
end
|
end
|
||||||
local fsk = 'FSK'..data.age_limit
|
local fsk = 'FSK'..data.age_limit
|
||||||
local description = string.sub(unescape(data.long_desc:gsub("%b<>", "")), 1, DESC_LENTH)..'...'
|
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
|
image_url = data.images[1].url
|
||||||
end
|
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
|
return text, image_url
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ end
|
|||||||
|
|
||||||
local function get_tumblr_video(data)
|
local function get_tumblr_video(data)
|
||||||
local caption = data.posts[1].caption
|
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
|
return caption, video_url
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user