Skip to content

Commit

Permalink
[nrktv:seriebase] Fix extraction (#22596)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpolden authored and pareronia committed Jun 22, 2020
1 parent 60c1ee8 commit ad970c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/nrk.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ class NRKTVSerieBaseIE(InfoExtractor):
def _extract_series(self, webpage, display_id, fatal=True):
config = self._parse_json(
self._search_regex(
(r'INITIAL_DATA_*\s*=\s*({.+?})\s*;',
(r'INITIAL_DATA(?:_V\d)?_*\s*=\s*({.+?})\s*;',
r'({.+?})\s*,\s*"[^"]+"\s*\)\s*</script>'),
webpage, 'config', default='{}' if not fatal else NO_DEFAULT),
display_id, fatal=False)
Expand Down

0 comments on commit ad970c9

Please sign in to comment.