aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar John Peterson <john.peterson3@hotmail.com>2012-08-10 00:00:00 +0000
committerGravatar Christopher Rosell <chrippa@tanuki.se>2012-08-11 02:44:17 +0200
commit327585ccd49ca5af013c25d6e1eb851570e7a095 (patch)
tree54c57d4ba0f3c1decc253652a4244caf8af63e54
parent3dd3c74e51eeb2f9fe4560874e3a0539e22f2cff (diff)
Fixing justintv channel name parser if mature content is enabled.
Fixing justintv channel name parser in case the mature content gate is displayed instead of the channel page. Signed-off-by: Christopher Rosell <chrippa@tanuki.se>
-rw-r--r--src/livestreamer/plugins/justintv.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/livestreamer/plugins/justintv.py b/src/livestreamer/plugins/justintv.py
index 776c91c..561c1d0 100644
--- a/src/livestreamer/plugins/justintv.py
+++ b/src/livestreamer/plugins/justintv.py
@@ -18,11 +18,7 @@ class JustinTV(Plugin):
return ("justin.tv" in url) or ("twitch.tv" in url)
def _get_channel_name(self, url):
- data = urlget(url)
- match = re.search(b"live_facebook_embed_player\.swf\?channel=(\w+)", data)
-
- if match:
- return str(match.group(1), "ascii")
+ return url.rstrip("/").rpartition("/")[2]
def _get_metadata(self, channel):
cookie = options.get("jtvcookie")