aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Christopher Rosell <chrippa@tanuki.se>2012-05-24 04:26:36 -0700
committerGravatar Christopher Rosell <chrippa@tanuki.se>2012-05-24 04:26:36 -0700
commit553ac15ebb8886a0d4c39f5e12ab39e707f16c46 (patch)
tree5ee9568161fe77da4844461a8029b55b47344ae0
parent64913105cd1d4b20b85a8865b9d782a3a6329720 (diff)
parent03c840597c7aeaa88a7ea7eb4d055b40a2dbe518 (diff)
Merge pull request #8 from frontendloader/master
Fix for own3d's new layout
-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))