Browse Source

[bbc] Improve data-playable regex

totalwebcasting
Sergey M․ 9 years ago
parent
commit
b1ec70e4a9
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      youtube_dl/extractor/bbc.py

+ 2
- 1
youtube_dl/extractor/bbc.py View File

@ -739,7 +739,8 @@ class BBCIE(BBCCoUkIE):
# http://www.bbc.com/news/world-us-canada-34473351)
data_playable = self._parse_json(
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)
if data_playable:
# data-playable has video vpid in settings.playlistObject.items (e.g.


Loading…
Cancel
Save