aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-10-10 23:20:30 +0600
committerSergey M․ <dstftw@gmail.com>2015-10-10 23:20:30 +0600
commitb1ec70e4a9fc53b0ec583f48a5262c9f864db40b (patch)
treecb6b6a8a50988eb561c5acc4129eaa17cfed414a /youtube_dl/extractor
parentc936d8cc7b247f79dce2f5749dea5c18a08858fb (diff)
[bbc] Improve data-playable regex
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/bbc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/bbc.py b/youtube_dl/extractor/bbc.py
index 0a08a57bd..972abd0d4 100644
--- a/youtube_dl/extractor/bbc.py
+++ b/youtube_dl/extractor/bbc.py
@@ -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.