From b7bee0304c688131417fbc8f193e1b9b03fdea54 Mon Sep 17 00:00:00 2001 From: Christopher Rosell Date: Tue, 28 Aug 2012 12:26:19 +0200 Subject: livestreamer.plugins.justintv: Avoid SWF verification when possible. --- src/livestreamer/plugins/justintv.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/livestreamer/plugins/justintv.py b/src/livestreamer/plugins/justintv.py index d40c32e..661c6bd 100644 --- a/src/livestreamer/plugins/justintv.py +++ b/src/livestreamer/plugins/justintv.py @@ -101,6 +101,9 @@ class JustinTV(Plugin): nodes = dom.getElementsByTagName("nodes")[0] + if len(nodes.childNodes) == 0: + return streams + self.logger.debug("Verifying SWF: {0}", self.SWFURL) swfhash, swfsize = swfverify(self.SWFURL) -- cgit v1.2.3