aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Christopher Rosell <chrippa@tanuki.se>2012-08-05 20:33:14 +0200
committerGravatar Christopher Rosell <chrippa@tanuki.se>2012-08-05 20:33:14 +0200
commit3dd3c74e51eeb2f9fe4560874e3a0539e22f2cff (patch)
tree39b8adebf0761fde3c72ecc6ee1464f38e1ac9ee
parentc139d50cc4050cdcf9f43b82c5bb8a5d24582041 (diff)
livestreamer.plugins.justintv: Fix subscription access.
-rw-r--r--src/livestreamer/plugins/justintv.py6
1 files 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)