From b1ec70e4a9fc53b0ec583f48a5262c9f864db40b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sergey=20M=E2=80=A4?= Date: Sat, 10 Oct 2015 23:20:30 +0600 Subject: [PATCH] [bbc] Improve data-playable regex --- youtube_dl/extractor/bbc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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{.+?})\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. -- 2.22.2