From d5e91aa3847e6dc1a1d625c6a0cb9f9dd5fc8255 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Fri, 7 Feb 2014 18:07:24 +0100 Subject: quvi/flashxtv: Print error if file is not available --- .local/share/libquvi-scripts/media/flashxtv.lua | 1 + 1 file changed, 1 insertion(+) (limited to '.local/share') diff --git a/.local/share/libquvi-scripts/media/flashxtv.lua b/.local/share/libquvi-scripts/media/flashxtv.lua index f766894..5cc93e1 100644 --- a/.local/share/libquvi-scripts/media/flashxtv.lua +++ b/.local/share/libquvi-scripts/media/flashxtv.lua @@ -15,6 +15,7 @@ function parse(qargs) local c = quvi.http.fetch(qargs.input_url).data qargs.title = c:match('
(.-)
') local iframe_url = c:match(']+src="(http://play.flashx.tv/.-)"') + if not(iframe_url) then error("file not available") end c = quvi.http.fetch(iframe_url).data local p = { yes = c:match('name="yes"[^>]+value="(.-)"'), -- cgit