From 1cb74d9c3770de1e41cd5ce4affd12a1d796c908 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Sat, 11 Jan 2014 19:25:59 +0100 Subject: quvi/zdf: Add a hack to obtain the best available format --- .local/share/libquvi-scripts/lua/website/zdfmediathek.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to '.local/share') diff --git a/.local/share/libquvi-scripts/lua/website/zdfmediathek.lua b/.local/share/libquvi-scripts/lua/website/zdfmediathek.lua index 3499323..f224395 100644 --- a/.local/share/libquvi-scripts/lua/website/zdfmediathek.lua +++ b/.local/share/libquvi-scripts/lua/website/zdfmediathek.lua @@ -39,7 +39,13 @@ function parse(self) self.thumbnail_url = c:match('([^<]*)') - self.url = { c:match('veryhigh[ \n]*(http://nrodl.zdf.de/[^<]*\.mp4)') } + local url = c:match('veryhigh[ \n]*(http://nrodl.zdf.de/[^<]*\.mp4)') + + if (c:match('1024')) then + url = string.gsub(url, "1456k_p13v11", "2256k_p14v11") + end + + self.url = { url } return self end -- cgit