From ee67b08de9db318102c236e2a87d52a2689f9f26 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 16 Jan 2014 13:02:48 +0100 Subject: quvi/zdf: Check for facet hbbtv instead of the expected url --- .local/share/libquvi-scripts/lua/website/zdfmediathek.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.local/share/libquvi-scripts/lua/website/zdfmediathek.lua b/.local/share/libquvi-scripts/lua/website/zdfmediathek.lua index 8d6f2fb..dc4cfb3 100644 --- a/.local/share/libquvi-scripts/lua/website/zdfmediathek.lua +++ b/.local/share/libquvi-scripts/lua/website/zdfmediathek.lua @@ -56,10 +56,7 @@ end function ZDFmediathek.table_add_format(t, fmt) -- Only accessible with HBBTV user agent, lets drop it - -- FIXME: store facets in fmt and match for hbbtv? - if fmt.url:match('http://www.metafilegenerator.de/') then - return - end + if fmt.facets and fmt.facets:match('hbbtv') then return end table.insert(t, fmt) @@ -103,8 +100,9 @@ function ZDFmediathek.iter_formats(c) 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("(.-)")) - f.height = tonumber(data:match("(.-)")) + f.width = tonumber(data:match('(.-)')) + f.height = tonumber(data:match('(.-)')) + f.facets = data:match('(.+)') ZDFmediathek.table_add_format(t, f) end -- cgit