diff options
author | Christopher Rosell <chrippa@tanuki.se> | 2012-08-05 20:33:14 +0200 |
---|---|---|
committer | Christopher Rosell <chrippa@tanuki.se> | 2012-08-05 20:33:14 +0200 |
commit | 3dd3c74e51eeb2f9fe4560874e3a0539e22f2cff (patch) | |
tree | 39b8adebf0761fde3c72ecc6ee1464f38e1ac9ee /src/livestreamer/plugins/justintv.py | |
parent | c139d50cc4050cdcf9f43b82c5bb8a5d24582041 (diff) |
livestreamer.plugins.justintv: Fix subscription access.
Diffstat (limited to 'src/livestreamer/plugins/justintv.py')
-rw-r--r-- | src/livestreamer/plugins/justintv.py | 6 |
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) |