diff options
author | Martin Polden <mpolden@mpolden.no> | 2019-10-04 13:57:18 +0200 |
---|---|---|
committer | Sergey M <dstftw@gmail.com> | 2019-10-04 18:57:18 +0700 |
commit | ca20b1304818a8d2d8eadfbe6f5387284e7ebc4d (patch) | |
tree | 6bf980f43efbd8723bf4ddaaf2ccdbf10ec1f575 /youtube_dl/extractor | |
parent | 894b3826f5a2e1742010c20554a6a1b9e98a51ee (diff) |
[nrktv:seriebase] Fix extraction (#22596)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/nrk.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/nrk.py b/youtube_dl/extractor/nrk.py index 5f43e692f..60933f069 100644 --- a/youtube_dl/extractor/nrk.py +++ b/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) |