projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d045f0b
)
[eagleplatform] Simplify secure mp4 construction and clarify rationale
author
Sergey M․
<dstftw@gmail.com>
Sat, 26 Sep 2015 19:10:39 +0000
(
01:10
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 26 Sep 2015 19:10:39 +0000
(
01:10
+0600)
youtube_dl/extractor/eagleplatform.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/eagleplatform.py
b/youtube_dl/extractor/eagleplatform.py
index 8bf88c77d55cd1636a5a6e7c6ec008d6f1451335..43336e57ffaeaa56c342ebaa9aa064fbf7a13e2a 100644
(file)
--- a/
youtube_dl/extractor/eagleplatform.py
+++ b/
youtube_dl/extractor/eagleplatform.py
@@
-89,7
+89,9
@@
class EaglePlatformIE(InfoExtractor):
'mp4', entry_protocol='m3u8_native')
mp4_url = self._get_video_url(
- secure_m3u8.replace("m3u8", "mp4").replace("hlsvod", "mp4").replace("hls", "mp4"),
+ # Secure mp4 URL is constructed according to Player.prototype.mp4 from
+ # http://lentaru.media.eagleplatform.com/player/player.js
+ re.sub(r'm3u8|hlsvod|hls|f4m', 'mp4', secure_m3u8),
video_id, 'Downloading mp4 JSON')
formats.append({'url': mp4_url, 'format_id': 'mp4'})