projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
64f9baa
)
fix rtlnow for newer series like "Der Bachelor" season 5
author
Markus Müller
<mmu@grummel.net>
Sun, 8 Feb 2015 20:55:39 +0000
(21:55 +0100)
committer
Markus Müller
<mmu@grummel.net>
Sun, 8 Feb 2015 20:55:39 +0000
(21:55 +0100)
youtube_dl/extractor/rtlnow.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/rtlnow.py
b/youtube_dl/extractor/rtlnow.py
index 285c3c4bebf8ec7c2cd793d2b40739222c18a5ca..e235f3c57993d2b051e45e03a1bd078636b27121 100644
(file)
--- a/
youtube_dl/extractor/rtlnow.py
+++ b/
youtube_dl/extractor/rtlnow.py
@@
-134,9
+134,18
@@
class RTLnowIE(InfoExtractor):
'player_url': video_page_url + 'includes/vodplayer.swf',
}
else:
'player_url': video_page_url + 'includes/vodplayer.swf',
}
else:
- fmt = {
- 'url': filename.text,
- }
+ mobj = re.search(r'.*/(?P<hoster>[^/]+)/videos/(?P<play_path>.+)\.f4m', filename.text)
+ if mobj:
+ fmt = {
+ 'url': 'rtmpe://fmspay-fra2.rtl.de/' + mobj.group('hoster'),
+ 'play_path': 'mp4:' + mobj.group('play_path'),
+ 'page_url': url,
+ 'player_url': video_page_url + 'includes/vodplayer.swf',
+ }
+ else:
+ fmt = {
+ 'url': filename.text,
+ }
fmt.update({
'width': int_or_none(filename.get('width')),
'height': int_or_none(filename.get('height')),
fmt.update({
'width': int_or_none(filename.get('width')),
'height': int_or_none(filename.get('height')),