aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/livestreamer/plugins/justintv.py3
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)