summaryrefslogtreecommitdiff
path: root/.local/share
diff options
context:
space:
mode:
Diffstat (limited to '.local/share')
-rw-r--r--.local/share/libquvi-scripts/lua/website/zdfmediathek.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/.local/share/libquvi-scripts/lua/website/zdfmediathek.lua b/.local/share/libquvi-scripts/lua/website/zdfmediathek.lua
index e82f25b..7bc4e5a 100644
--- a/.local/share/libquvi-scripts/lua/website/zdfmediathek.lua
+++ b/.local/share/libquvi-scripts/lua/website/zdfmediathek.lua
@@ -82,7 +82,7 @@ function ZDFmediathek.table_add_format(t, fmt)
if fmt.quality == "hd" and fmt.type == "h264_aac_mp4_rtmp_zdfmeta_http" then
local new = { type = "h264_aac_mp4_http_na_na", container = "mp4",
- proto = "http" }
+ protocol = "http" }
new.url = ZDFmediathek.http_mp4_from_meta(fmt.url)
if new.url then
table.insert(t, ZDFmediathek.merge_format(fmt, new))
@@ -94,7 +94,7 @@ end
function ZDFmediathek.iter_formats(c)
local p = {
- '<formitaet basetype="((.-)_(.-)_(.-)_(.-)_.-)".->',
+ '<formitaet basetype="(.-_.-_(.-)_(.-)_.-)".->',
'<quality>(.-)</quality>',
'<url>(.-)</url>',
'(.-)',
@@ -102,10 +102,10 @@ function ZDFmediathek.iter_formats(c)
}
local t = {}
- for type,vcodec,acodec,container,proto,quality,url,data in
+ for type,container,protocol,quality,url,data in
c:gmatch(table.concat(p, '%s*')) do
- f = { type = type, container = container, url = url, vcodec = vcodec,
- acodec = acodec, proto = proto, quality = quality }
+ f = { type = type, container = container, protocol = protocol,
+ quality = quality, url = url }
-- width and height are not available for live streams -> may be nil
f.width = tonumber(data:match("<width>(.-)</width>"))
f.height = tonumber(data:match("<height>(.-)</height>"))
@@ -211,7 +211,7 @@ ZDFmediathek.choose_default = ZDFmediathek.choose_best
function ZDFmediathek.to_s(t)
return table.concat({ t.container,
- (t.proto ~= "http") and '_' .. t.proto or '',
+ (t.protocol ~= "http") and '_' .. t.protocol or '',
'_', (t.height) and t.height ..'p' or t.quality })
end