diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2014-02-07 18:07:24 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2014-02-07 18:07:24 +0100 |
commit | d5e91aa3847e6dc1a1d625c6a0cb9f9dd5fc8255 (patch) | |
tree | 2eea4135a2b699222439ba6d5035cbcc801dc3be | |
parent | d57d4653c97393925903358b23357f86f96e4831 (diff) | |
download | dotfiles-d5e91aa3847e6dc1a1d625c6a0cb9f9dd5fc8255.tar.gz dotfiles-d5e91aa3847e6dc1a1d625c6a0cb9f9dd5fc8255.tar.bz2 dotfiles-d5e91aa3847e6dc1a1d625c6a0cb9f9dd5fc8255.zip |
quvi/flashxtv: Print error if file is not available
-rw-r--r-- | .local/share/libquvi-scripts/media/flashxtv.lua | 1 |
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="(.-)"'), |