From 99635d729b94da0e2d67fff191204e8f43636746 Mon Sep 17 00:00:00 2001 From: Akamaru Date: Tue, 19 Jul 2016 17:23:43 +0200 Subject: [PATCH] Fixes --- plugins/playstation_store.lua | 16 ++++++++++------ plugins/tumblr.lua | 2 +- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/plugins/playstation_store.lua b/plugins/playstation_store.lua index c2fcd22..34323e4 100644 --- a/plugins/playstation_store.lua +++ b/plugins/playstation_store.lua @@ -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 diff --git a/plugins/tumblr.lua b/plugins/tumblr.lua index 88bdaaf..c0e226c 100644 --- a/plugins/tumblr.lua +++ b/plugins/tumblr.lua @@ -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