diff --git a/miku/plugins/playstation_store.lua b/miku/plugins/playstation_store.lua
index 81db011..34777fb 100644
--- a/miku/plugins/playstation_store.lua
+++ b/miku/plugins/playstation_store.lua
@@ -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 = ''..title..''..publish..' für '..system..' ['..type..']\nPreis: '..price..'\nFreigegeben ab: '..fsk..'\n'..'Release: '..release..'\n\nBeschreibung:\n'..description..''
+ local text = ''..title..''..publish..system..types..'\nPreis: '..price..'\nFreigegeben ab: '..fsk..'\n'..'Release: '..release..'\n\nBeschreibung:\n'..description..''
return text, image_url
end