From ffaadfdbaf4dd25a1565a13edb11880e6ad8fb0e Mon Sep 17 00:00:00 2001 From: Toni Gundogdu Date: Tue, 8 Oct 2013 17:05:33 +0300 Subject: [PATCH] FIX: quvi/youtube: ident: query: "v=" may not be first param Do not assume the URL 'v=' parameter of the 'query' element to be the first parameter. Signed-off-by: Toni Gundogdu --- share/common/quvi/youtube.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/common/quvi/youtube.lua b/share/common/quvi/youtube.lua index d7d6fb2..1248d6d 100644 --- a/share/common/quvi/youtube.lua +++ b/share/common/quvi/youtube.lua @@ -47,7 +47,7 @@ function M.can_parse_url(url) local t = U.parse(url) if t and t.scheme and t.scheme:lower():match('^https?$') and t.host and t.host:lower():match('youtube%.com$') - and t.query and t.query:lower():match('^v=[%w-_]+') + and t.query and t.query:lower():match('v=[%w-_]+') and t.path and t.path:lower():match('^/watch$') then return true -- 2.11.4.GIT