mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-26 21:59:08 +01:00
[ondemandkorea] Update jw_config
regex (#2056)
Authored by: julien-hadleyjack
This commit is contained in:
parent
f3aa3c3f98
commit
c031b0414c
1 changed files with 4 additions and 2 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue