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 dstftw committed Oct 4, 2019
1 parent 894b382 commit ca20b13
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 ca20b13

Please sign in to comment.