projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b09757
)
[rtbf] Fix data video regex
author
Sergey M․
<dstftw@gmail.com>
Wed, 16 Jul 2014 18:57:38 +0000
(
01:57
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 16 Jul 2014 18:57:38 +0000
(
01:57
+0700)
youtube_dl/extractor/rtbf.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/rtbf.py
b/youtube_dl/extractor/rtbf.py
index 205f8a167601f9f7c6a20ccf721439a7b070516f..dce64e1517003015722db1097ac83b106cc91136 100644
(file)
--- 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')