diff --git a/miku/plugins/plex.lua b/miku/plugins/plex.lua
index b076e88..9080c1f 100644
--- a/miku/plugins/plex.lua
+++ b/miku/plugins/plex.lua
@@ -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 = ''..data.parentTitle..''
+ artist = ' von '..data.parentTitle..''
else
artist = ''
end
@@ -86,14 +86,17 @@ function plex:get_plex(query)
if data.originallyAvailableAt then
date = makeOurDate(data.originallyAvailableAt)
+ date1 = '\nAusstrahlung: '..date
+ date2 = '\nVeröffentlicht: '..date
elseif data.year then
date = data.year
+ date1 = '\nAusstrahlung: '..date
+ date2 = '\nVeröffentlicht: '..date
else
date = ''
+ date1 = date
+ date2 = date
end
-
- local date1 = '\nAusstrahlung: '..date
- local date2 = '\nVeröffentlicht: '..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