diff options
Diffstat (limited to 'hypervideo_dl/extractor/nova.py')
-rw-r--r-- | hypervideo_dl/extractor/nova.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hypervideo_dl/extractor/nova.py b/hypervideo_dl/extractor/nova.py index 47b9748..3acb881 100644 --- a/hypervideo_dl/extractor/nova.py +++ b/hypervideo_dl/extractor/nova.py @@ -39,7 +39,7 @@ class NovaEmbedIE(InfoExtractor): player = self._parse_json( self._search_regex( - r'Player\.init\s*\([^,]+,\s*({.+?})\s*,\s*{.+?}\s*\)\s*;', + r'Player\.init\s*\([^,]+,\s*(?:\w+\s*\?\s*{.+?}\s*:\s*)?({.+})\s*,\s*{.+?}\s*\)\s*;', webpage, 'player', default='{}'), video_id, fatal=False) if player: for format_id, format_list in player['tracks'].items(): @@ -190,7 +190,7 @@ class NovaIE(InfoExtractor): }] def _real_extract(self, url): - mobj = re.match(self._VALID_URL, url) + mobj = self._match_valid_url(url) display_id = mobj.group('id') site = mobj.group('site') |