diff options
Diffstat (limited to 'src/livestreamer/plugins')
-rw-r--r-- | src/livestreamer/plugins/ownedtv.py | 5 |
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)) |