From dcf2fe944db0664ee6d494185b4802ea23418d53 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Fri, 7 Feb 2014 13:33:50 +0100 Subject: quvi/xvidstage: Improve the matching of the relevant minjs --- .local/share/libquvi-scripts/media/xvidstage.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.local/share/libquvi-scripts/media/xvidstage.lua b/.local/share/libquvi-scripts/media/xvidstage.lua index e2b1b51..1312e96 100644 --- a/.local/share/libquvi-scripts/media/xvidstage.lua +++ b/.local/share/libquvi-scripts/media/xvidstage.lua @@ -69,11 +69,11 @@ function Xvidstage.iter_streams(c, qargs) return { s } end - local packed = c:match("
]+>([^\n]+)") + local pattern = string.rep('[a-z0-9]', 56) + local packed = c:match("(function%(p,a,c,k,e,d%)[^\n]+"..pattern.."[^\n]+)%)") c = Xvidstage.unpack_minjs(packed) - local id_pattern = string.rep('[a-z0-9]', 56) - url,ext = c:match('["\'](http://[^"\']+/d/'..id_pattern..'/)video%.(.-)["\']') + url,ext = c:match('["\'](http://[^"\']+/d/'..pattern..'/)video%.(.-)["\']') local s = S.stream_new(table.concat({url, qargs.title})) s.container = ext return { s } -- cgit