aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar frontendloader <dvorachek@gmail.com>2012-05-24 06:05:19 -0500
committerGravatar frontendloader <dvorachek@gmail.com>2012-05-24 06:05:19 -0500
commit03c840597c7aeaa88a7ea7eb4d055b40a2dbe518 (patch)
tree5ee9568161fe77da4844461a8029b55b47344ae0
parent64913105cd1d4b20b85a8865b9d782a3a6329720 (diff)
fix for own3d's new layout/scheme.
-rw-r--r--src/livestreamer/plugins/ownedtv.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/livestreamer/plugins/ownedtv.py b/src/livestreamer/plugins/ownedtv.py
index c15e8c4..5279777 100644
--- a/src/livestreamer/plugins/ownedtv.py
+++ b/src/livestreamer/plugins/ownedtv.py
@@ -36,7 +36,10 @@ class OwnedTV(Plugin):
def _get_channel_id(self, url):
data = urlget(url, opener=urlopener)
-
+ match = re.search(b'flashvars.config = "livecfg/(\d+)', data)
+ if match:
+ return int(match.group(1))
+
match = re.search(b"document.location.hash='/live/(\d+)'", data)
if match:
return int(match.group(1))