diff --git a/.gitignore b/.gitignore index 415a236..0e475cf 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,5 @@ plugins/help2.lua plugins/pegelf_img.lua plugins/chantalle.lua plugins/wiiu.lua -plugins/plex_test.lua \ No newline at end of file +plugins/plex_test.lua +plugins/gravatar.lua \ No newline at end of file diff --git a/plugins/kickstarter_search.lua b/plugins/kickstarter_search.lua index 6ece34c..015fe62 100644 --- a/plugins/kickstarter_search.lua +++ b/plugins/kickstarter_search.lua @@ -14,14 +14,14 @@ local function search_kicker(tag) local pledged = comma_value(string.gsub(data.pledged, "%.(.*)", "")) local goal = comma_value(data.goal) local currency = data.currency_symbol - local created = run_command('date -d @'..data.launched_at..' +%d.%m.%Y') + local created = string.gsub(run_command('date -d @'..data.launched_at..' +%d.%m.%Y'), '%\n', '') local ending = run_command('date -d @'..data.deadline..' +%d.%m.%Y') local url = data.urls.web.project if data.photo.full then image_url = data.photo.full end - local text = title..' von '..from..' ('..country..')\n'..pledged..currency..' von '..goal..currency..' erreicht\n'..'Erstellt am '..created..'Endet am '..ending..'\n'..desc..'\n'..url + local text = title..' von '..from..' ('..country..')\n'..pledged..currency..' von '..goal..currency..' erreicht\n'..'Läuft von '..created..' bis '..ending..'\n'..desc..'\n'..url if data.photo.full then return text, image_url diff --git a/plugins/plex.lua b/plugins/plex.lua index c3cb15c..275da58 100644 --- a/plugins/plex.lua +++ b/plugins/plex.lua @@ -29,6 +29,12 @@ local data = json:decode(table.concat(response_body))._children[1] local title = data.title + if data.tagline then + tag = '\n"'..data.tagline..'"' + else + tag = '' + end + if data.parentIndex then season = 'S'..convertNumbers(data.parentIndex) else @@ -101,7 +107,7 @@ local data = json:decode(table.concat(response_body))._children[1] pic = baseurl..data.thumb end - local text = title..from..origtitle..studio..date..episodes..fsk..duration..rating..desc..'\n' + local text = title..tag..from..origtitle..studio..date..episodes..fsk..duration..rating..desc..'\n' if data.thumb then