aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/ondemandkorea.py
diff options
context:
space:
mode:
Diffstat (limited to 'hypervideo_dl/extractor/ondemandkorea.py')
-rw-r--r--hypervideo_dl/extractor/ondemandkorea.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/hypervideo_dl/extractor/ondemandkorea.py b/hypervideo_dl/extractor/ondemandkorea.py
index cc3c587..e933ea2 100644
--- a/hypervideo_dl/extractor/ondemandkorea.py
+++ b/hypervideo_dl/extractor/ondemandkorea.py
@@ -1,6 +1,8 @@
# coding: utf-8
from __future__ import unicode_literals
+import re
+
from .common import InfoExtractor
from ..utils import (
ExtractorError,
@@ -71,8 +73,8 @@ class OnDemandKoreaIE(InfoExtractor):
jw_config = self._parse_json(
self._search_regex(
- r'(?s)odkPlayer\.init.*?(?P<options>{[^;]+}).*?;',
- webpage, 'jw config', group='options'),
+ r'playlist\s*=\s*\[(?P<options>.+)];?$',
+ webpage, 'jw config', flags=re.MULTILINE, group='options'),
video_id, transform_source=js_to_json)
info = self._parse_jwplayer_data(
jw_config, video_id, require_title=False, m3u8_id='hls',