From c6ae74f76f92cd0f7875ab590c6de7669fd635a4 Mon Sep 17 00:00:00 2001 From: Christopher Rosell Date: Sat, 1 Sep 2012 20:43:30 +0200 Subject: livestreamer.plugins.justintv: Always use lowercase channel name. --- src/livestreamer/plugins/justintv.py | 4 ++-- 1 file 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) -- cgit v1.2.3