projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
894b382
)
[nrktv:seriebase] Fix extraction (#22596)
author
Martin Polden
<mpolden@mpolden.no>
Fri, 4 Oct 2019 11:57:18 +0000
(13:57 +0200)
committer
Sergey M
<dstftw@gmail.com>
Fri, 4 Oct 2019 11:57:18 +0000
(18:57 +0700)
youtube_dl/extractor/nrk.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/nrk.py
b/youtube_dl/extractor/nrk.py
index 5f43e692f43091eff351567e57c030585b4cc22e..60933f069c4ca4d38cfb19cad742fd2cb1d1b537 100644
(file)
--- 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)