Browse Source

[nrktv:seriebase] Fix extraction (#22596)

master
Martin Polden 5 years ago
committed by Sergey M
parent
commit
ca20b13048
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/nrk.py

2
youtube_dl/extractor/nrk.py

@ -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)

Loading…
Cancel
Save