Skip to content
代码片段 群组 项目
未验证 提交 c031b041 编辑于 作者: Julien Hadley Jack's avatar Julien Hadley Jack 提交者: GitHub
浏览文件

[ondemandkorea] Update `jw_config` regex (#2056)

Authored by: julien-hadleyjack
上级 f3aa3c3f
No related branches found
No related tags found
无相关合并请求
# 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',
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册