mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-29 21:52:54 +00:00
[bbc] Improve data-playable regex
This commit is contained in:
parent
c936d8cc7b
commit
b1ec70e4a9
1 changed files with 2 additions and 1 deletions
|
@ -739,7 +739,8 @@ class BBCIE(BBCCoUkIE):
|
||||||
# http://www.bbc.com/news/world-us-canada-34473351)
|
# http://www.bbc.com/news/world-us-canada-34473351)
|
||||||
data_playable = self._parse_json(
|
data_playable = self._parse_json(
|
||||||
unescapeHTML(self._search_regex(
|
unescapeHTML(self._search_regex(
|
||||||
r'data-playable="({.+?})"', webpage, 'data playable', default='{}')),
|
r'data-playable=(["\'])(?P<json>{.+?})\1', webpage,
|
||||||
|
'data playable', default='{}', group='json')),
|
||||||
programme_id, fatal=False)
|
programme_id, fatal=False)
|
||||||
if data_playable:
|
if data_playable:
|
||||||
# data-playable has video vpid in settings.playlistObject.items (e.g.
|
# data-playable has video vpid in settings.playlistObject.items (e.g.
|
||||||
|
|
Loading…
Reference in a new issue