logo

youtube-dl

[mirror] Download/Watch videos from video hostersgit clone https://hacktivis.me/git/mirror/youtube-dl.git
commit: d8894e24a4f123c1fe84112693047e638b7161df
parent 3b09757bacf4518b76ba6fef071ad8e65d6faa19
Author: Sergey M․ <dstftw@gmail.com>
Date:   Thu, 17 Jul 2014 01:57:38 +0700

[rtbf] Fix data video regex

Diffstat:

Myoutube_dl/extractor/rtbf.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/rtbf.py b/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) 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')