From 03c840597c7aeaa88a7ea7eb4d055b40a2dbe518 Mon Sep 17 00:00:00 2001 From: frontendloader Date: Thu, 24 May 2012 06:05:19 -0500 Subject: fix for own3d's new layout/scheme. --- src/livestreamer/plugins/ownedtv.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)) -- cgit v1.2.3