diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2014-01-16 13:02:48 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2014-01-16 13:02:48 +0100 |
commit | ee67b08de9db318102c236e2a87d52a2689f9f26 (patch) | |
tree | 60ab4d3ff24af1ef18f9bad9ce0dcdf8a4b07788 /.local/share | |
parent | 4180d1af19bd603e588963b6a7178199a5693844 (diff) | |
download | dotfiles-ee67b08de9db318102c236e2a87d52a2689f9f26.tar.gz dotfiles-ee67b08de9db318102c236e2a87d52a2689f9f26.tar.bz2 dotfiles-ee67b08de9db318102c236e2a87d52a2689f9f26.zip |
quvi/zdf: Check for facet hbbtv instead of the expected url
Diffstat (limited to '.local/share')
-rw-r--r-- | .local/share/libquvi-scripts/lua/website/zdfmediathek.lua | 10 |
1 files 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 <facet>hbbtv</facet>? - if fmt.url:match('http://www.metafilegenerator.de/') then - return - end + if fmt.facets and fmt.facets:match('<facet>hbbtv</facet>') 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("<width>(.-)</width>")) - f.height = tonumber(data:match("<height>(.-)</height>")) + f.width = tonumber(data:match('<width>(.-)</width>')) + f.height = tonumber(data:match('<height>(.-)</height>')) + f.facets = data:match('<facets>(.+)</facets>') ZDFmediathek.table_add_format(t, f) end |