From a3c1bf9f04cefb58cd19a1fc8e007a4b190e4b7c Mon Sep 17 00:00:00 2001 From: Christopher Rosell Date: Tue, 11 Sep 2012 12:33:18 +0200 Subject: livestreamer.plugins.justintv: Verify stream info. --- src/livestreamer/plugins/justintv.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/livestreamer/plugins/justintv.py') diff --git a/src/livestreamer/plugins/justintv.py b/src/livestreamer/plugins/justintv.py index 4fe93be..3eef869 100644 --- a/src/livestreamer/plugins/justintv.py +++ b/src/livestreamer/plugins/justintv.py @@ -121,6 +121,9 @@ class JustinTV(Plugin): for child in node.childNodes: info[child.tagName] = self._get_node_text(child) + if not ("connect" in info and "play" in info): + continue + stream = RTMPStream(self.session, { "rtmp": ("{0}/{1}").format(info["connect"], info["play"]), "swfUrl": self.SWFURL, -- cgit v1.2.3