1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-12-21 19:15:37 +08:00

[rtbf] Fix data video regex

This commit is contained in:
Sergey M․ 2014-07-17 01:57:38 +07:00
parent 3b09757bac
commit d8894e24a4

View File

@ -30,7 +30,7 @@ class RTBFIE(InfoExtractor):
page = self._download_webpage('https://www.rtbf.be/video/embed?id=%s' % video_id, video_id) page = self._download_webpage('https://www.rtbf.be/video/embed?id=%s' % video_id, video_id)
data = json.loads(self._html_search_regex( data = json.loads(self._html_search_regex(
r'<div class="js-player-embed" data-video="([^"]+)"', page, 'data video'))['data'] r'<div class="js-player-embed(?: player-embed)?" data-video="([^"]+)"', page, 'data video'))['data']
video_url = data.get('downloadUrl') or data.get('url') video_url = data.get('downloadUrl') or data.get('url')