From 2ebf439b9fec4639136e9f554e7ce740c2cec172 Mon Sep 17 00:00:00 2001 From: Akamaru Date: Mon, 5 Sep 2016 19:18:01 +0200 Subject: [PATCH] PlayStation Store Plugin funktioniert nun auch mit Filmen und Serien --- miku/plugins/playstation_store.lua | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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