aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/udemy.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-12-09 20:02:19 +0700
committerSergey M․ <dstftw@gmail.com>2017-12-09 20:02:54 +0700
commit913b61eeee9436a3ddf5675ec935d00c3a05b7a4 (patch)
tree848bd9f4d3f1340f284e9945ef0a6bcfc9a6a03e /youtube_dl/extractor/udemy.py
parent6f1ec339a0332041d6469887a91cf4e3ff557477 (diff)
downloadyoutube-dl-913b61eeee9436a3ddf5675ec935d00c3a05b7a4.zip
youtube-dl-913b61eeee9436a3ddf5675ec935d00c3a05b7a4.tar.gz
youtube-dl-913b61eeee9436a3ddf5675ec935d00c3a05b7a4.tar.bz2
[udemy] Extract more HLS formats
Diffstat (limited to 'youtube_dl/extractor/udemy.py')
-rw-r--r--youtube_dl/extractor/udemy.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube_dl/extractor/udemy.py b/youtube_dl/extractor/udemy.py
index b660339..195f5ce 100644
--- a/youtube_dl/extractor/udemy.py
+++ b/youtube_dl/extractor/udemy.py
@@ -257,6 +257,11 @@ class UdemyIE(InfoExtractor):
video_url = source.get('file') or source.get('src')
if not video_url or not isinstance(video_url, compat_str):
continue
+ if source.get('type') == 'application/x-mpegURL' or determine_ext(video_url) == 'm3u8':
+ formats.extend(self._extract_m3u8_formats(
+ video_url, video_id, 'mp4', entry_protocol='m3u8_native',
+ m3u8_id='hls', fatal=False))
+ continue
format_id = source.get('label')
f = {
'url': video_url,