summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2014-02-07 18:07:24 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2014-02-07 18:07:24 +0100
commitd5e91aa3847e6dc1a1d625c6a0cb9f9dd5fc8255 (patch)
tree2eea4135a2b699222439ba6d5035cbcc801dc3be /.local
parentd57d4653c97393925903358b23357f86f96e4831 (diff)
downloaddotfiles-d5e91aa3847e6dc1a1d625c6a0cb9f9dd5fc8255.tar.gz
dotfiles-d5e91aa3847e6dc1a1d625c6a0cb9f9dd5fc8255.tar.bz2
dotfiles-d5e91aa3847e6dc1a1d625c6a0cb9f9dd5fc8255.zip
quvi/flashxtv: Print error if file is not available
Diffstat (limited to '.local')
-rw-r--r--.local/share/libquvi-scripts/media/flashxtv.lua1
1 files changed, 1 insertions, 0 deletions
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('<div class="video_title">(.-)</div>')
local iframe_url = c:match('<iframe[^>]+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="(.-)"'),