Start- und Enddatum Ausgabe geändert

This commit is contained in:
Akamaru 2016-03-03 17:40:30 +01:00
parent 33ef0ec3c0
commit 2619e0c243
3 changed files with 11 additions and 4 deletions

3
.gitignore vendored
View File

@ -9,4 +9,5 @@ plugins/help2.lua
plugins/pegelf_img.lua
plugins/chantalle.lua
plugins/wiiu.lua
plugins/plex_test.lua
plugins/plex_test.lua
plugins/gravatar.lua

View File

@ -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

View File

@ -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