From 3dd3c74e51eeb2f9fe4560874e3a0539e22f2cff Mon Sep 17 00:00:00 2001 From: Christopher Rosell Date: Sun, 5 Aug 2012 20:33:14 +0200 Subject: livestreamer.plugins.justintv: Fix subscription access. --- src/livestreamer/plugins/justintv.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/livestreamer/plugins/justintv.py b/src/livestreamer/plugins/justintv.py index 32348d2..776c91c 100644 --- a/src/livestreamer/plugins/justintv.py +++ b/src/livestreamer/plugins/justintv.py @@ -44,7 +44,7 @@ class JustinTV(Plugin): metadata = {} metadata["title"] = self._get_node_if_exists(dom, "title") - metadata["chansub_guid"] = self._get_node_if_exists(dom, "chansub_guid") + metadata["access_guid"] = self._get_node_if_exists(dom, "access_guid") return metadata @@ -68,9 +68,9 @@ class JustinTV(Plugin): return tag chansub = None - if options.get("cookie"): + if options.get("jtvcookie"): metadata = self._get_metadata(channelname) - chansub = metadata["chansub_guid"] + chansub = metadata["access_guid"] randomp = int(random.random() * 999999) url = self.StreamInfoURL.format(channelname, randomp, chansub) -- cgit v1.2.3