summaryrefslogtreecommitdiff
path: root/.local/share
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2014-01-16 10:54:08 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2014-01-16 10:54:08 +0100
commit30c3b3e3edbb5b6103f1b47ca8d94a460276387f (patch)
treedcc085719fe8cca5e4a0d25635126d4fde588601 /.local/share
parent62e2b51f80406736b209c1a4c47773afb3cb447a (diff)
downloaddotfiles-30c3b3e3edbb5b6103f1b47ca8d94a460276387f.tar.gz
dotfiles-30c3b3e3edbb5b6103f1b47ca8d94a460276387f.tar.bz2
dotfiles-30c3b3e3edbb5b6103f1b47ca8d94a460276387f.zip
quvi/zdf: cleanup
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