PlayStation Store Plugin funktioniert nun auch mit Filmen und Serien

This commit is contained in:
Akamaru 2016-09-05 19:18:01 +02:00
parent 02633e91cb
commit 2ebf439b9f
1 changed files with 11 additions and 3 deletions

View File

@ -24,8 +24,16 @@ function playstation_store:get_info(country_code, game_id)
else
publish = ''
end
local system = data.playable_platform[1]
local type = data.gameContentTypesList[1].name
if data.playable_platform then
system = ' für '..data.playable_platform[1]
else
system = ''
end
if data.gameContentTypesList then
types = ' ['..data.gameContentTypesList[1].name..']'
else
types = ''
end
if data.skus[1].rewards[1] then
--[[
@ -49,7 +57,7 @@ function playstation_store:get_info(country_code, game_id)
image_url = data.images[1].url
end
local text = '<b>'..title..'</b>'..publish..' für '..system..' ['..type..']\n<b>Preis:</b> '..price..'\n<b>Freigegeben ab:</b> '..fsk..'\n'..'<b>Release:</b> '..release..'\n\nBeschreibung:\n<i>'..description..'</i>'
local text = '<b>'..title..'</b>'..publish..system..types..'\n<b>Preis:</b> '..price..'\n<b>Freigegeben ab:</b> '..fsk..'\n'..'<b>Release:</b> '..release..'\n\nBeschreibung:\n<i>'..description..'</i>'
return text, image_url
end