Was zum Fick?

This commit is contained in:
Andreas Bielawski 2016-09-30 16:15:35 +02:00
parent 1fc4941604
commit fdd10ca1bd

View File

@ -36,7 +36,7 @@ function plex:get_plex(query)
Accept = "application/json"
}
}
local ok, response_code, response_headers, response_status_line = https.request(request_constructor)
local ok, response_code, response_headers, response_status_line = http.request(request_constructor)
if not ok then return 'NOTOK' end
local data = json.decode(table.concat(response_body))._children[1]
@ -61,7 +61,7 @@ function plex:get_plex(query)
end
if data.parentTitle then
artist = '<b>'..data.parentTitle..'</b>'
artist = ' von <b>'..data.parentTitle..'</b>'
else
artist = ''
end
@ -86,14 +86,17 @@ function plex:get_plex(query)
if data.originallyAvailableAt then
date = makeOurDate(data.originallyAvailableAt)
date1 = '\n<b>Ausstrahlung:</b> '..date
date2 = '\n<b>Veröffentlicht:</b> '..date
elseif data.year then
date = data.year
date1 = '\n<b>Ausstrahlung:</b> '..date
date2 = '\n<b>Veröffentlicht:</b> '..date
else
date = ''
date1 = date
date2 = date
end
local date1 = '\n<b>Ausstrahlung:</b> '..date
local date2 = '\n<b>Veröffentlicht:</b> '..date
if data.leafCount then
if data.leafCount > 1 then
@ -149,7 +152,7 @@ function plex:get_plex(query)
elseif data.librarySectionTitle == 'Filme' then
text = title..tag..origtitle..studio..date2..fsk..duration..rating..desc
elseif data.librarySectionTitle == 'Musik' then
text = title..' von '..artist..date2
text = title..artist..date2..desc
elseif data.librarySectionTitle == 'Serien' then
text = title..from..studio..date1..episodes..fsk..duration..rating..desc
elseif data.librarySectionTitle == 'YouTube Serien' then