diff options
author | Christopher Rosell <chrippa@tanuki.se> | 2012-08-28 12:26:19 +0200 |
---|---|---|
committer | Christopher Rosell <chrippa@tanuki.se> | 2012-08-28 12:26:19 +0200 |
commit | b7bee0304c688131417fbc8f193e1b9b03fdea54 (patch) | |
tree | 1cec8e5dd19a2293edf1986369ba95c776f2f22f | |
parent | 8a9578b460383c983de269742838f8515e9311c7 (diff) |
livestreamer.plugins.justintv: Avoid SWF verification when possible.
-rw-r--r-- | src/livestreamer/plugins/justintv.py | 3 |
1 files changed, 3 insertions, 0 deletions
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) |