aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Christopher Rosell <chrippa@tanuki.se>2012-09-01 20:43:30 +0200
committerGravatar Christopher Rosell <chrippa@tanuki.se>2012-09-01 20:43:30 +0200
commitc6ae74f76f92cd0f7875ab590c6de7669fd635a4 (patch)
treec433d5c81e85f9c17f1203d1fc78401c30017e25
parentb7bee0304c688131417fbc8f193e1b9b03fdea54 (diff)
livestreamer.plugins.justintv: Always use lowercase channel name.
-rw-r--r--src/livestreamer/plugins/justintv.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/livestreamer/plugins/justintv.py b/src/livestreamer/plugins/justintv.py
index 661c6bd..0f7ec42 100644
--- a/src/livestreamer/plugins/justintv.py
+++ b/src/livestreamer/plugins/justintv.py
@@ -11,7 +11,7 @@ class JustinTV(Plugin):
"cookie": None
})
- StreamInfoURL = "http://usher.justin.tv/find/{0}.xml?type=any&p={1}&b_id=true&chansub_guid={2}&private_code=null&group=&channel_subscription={2}"
+ StreamInfoURL = "http://usher.justin.tv/find/{0}.xml?type=any&p={1}&b_id=true&private_code=null&group=&channel_subscription={2}"
MetadataURL = "http://www.justin.tv/meta/{0}.xml?on_site=true"
SWFURL = "http://www.justin.tv/widgets/live_embed_player.swf"
@@ -83,7 +83,7 @@ class JustinTV(Plugin):
randomp = int(random.random() * 999999)
- url = self.StreamInfoURL.format(channelname, randomp, chansub)
+ url = self.StreamInfoURL.format(channelname.lower(), randomp, chansub)
self.logger.debug("Fetching stream info")
data = urlget(url)