Browse Source

[rtbf] Fix data video regex

master
Sergey M․ 10 years ago
parent
commit
d8894e24a4
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/rtbf.py

2
youtube_dl/extractor/rtbf.py

@ -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')

Loading…
Cancel
Save