Skip to content

Commit

Permalink
[ie/bbc] Fix JSON parsing bug
Browse files Browse the repository at this point in the history
Authored by: bashonly
  • Loading branch information
bashonly committed Dec 21, 2023
1 parent 37755a0 commit 19741ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt_dlp/extractor/bbc.py
Expand Up @@ -1188,7 +1188,7 @@ def _real_extract(self, url):
if initial_data is None:
initial_data = self._search_regex(
r'window\.__INITIAL_DATA__\s*=\s*({.+?})\s*;', webpage,
'preload state', default={})
'preload state', default='{}')
else:
initial_data = self._parse_json(initial_data or '"{}"', playlist_id, fatal=False)
initial_data = self._parse_json(initial_data, playlist_id, fatal=False)
Expand Down

0 comments on commit 19741ab

Please sign in to comment.