diff options
author | John Peterson <john.peterson3@hotmail.com> | 2012-08-10 00:00:00 +0000 |
---|---|---|
committer | Christopher Rosell <chrippa@tanuki.se> | 2012-08-11 02:44:17 +0200 |
commit | 327585ccd49ca5af013c25d6e1eb851570e7a095 (patch) | |
tree | 54c57d4ba0f3c1decc253652a4244caf8af63e54 /src/livestreamer/plugins/justintv.py | |
parent | 3dd3c74e51eeb2f9fe4560874e3a0539e22f2cff (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>
Diffstat (limited to 'src/livestreamer/plugins/justintv.py')
-rw-r--r-- | src/livestreamer/plugins/justintv.py | 6 |
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") |