aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-10-07 17:50:45 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-10-07 17:50:45 +0800
commit3d83a1ae924902a0421bea8e2e6cd57bb34ee299 (patch)
treeb32da6568e33a600cd7f08b0fa1694194376e3ce /youtube_dl
parentc0a7b9b348bb580d32fc94ee90c1b3b02b668a9e (diff)
[generic] Support direct MMS links (closes #10838)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/generic.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py
index 8ef8fb5f4..1f18cbfe9 100644
--- a/youtube_dl/extractor/generic.py
+++ b/youtube_dl/extractor/generic.py
@@ -1412,6 +1412,18 @@ class GenericIE(InfoExtractor):
},
'playlist_mincount': 3,
},
+ {
+ # Direct MMS link
+ 'url': 'mms://kentro.kaist.ac.kr/200907/MilesReid(0709).wmv',
+ 'info_dict': {
+ 'id': 'MilesReid(0709)',
+ 'ext': 'wmv',
+ 'title': 'MilesReid(0709)',
+ },
+ 'params': {
+ 'skip_download': True, # rtsp downloads, requiring mplayer or mpv
+ },
+ },
# {
# # TODO: find another test
# # http://schema.org/VideoObject
@@ -1551,6 +1563,13 @@ class GenericIE(InfoExtractor):
else:
video_id = compat_urllib_parse_unquote(os.path.splitext(url.rstrip('/').split('/')[-1])[0])
+ if parsed_url.scheme == 'mms':
+ return {
+ 'id': video_id,
+ 'title': video_id,
+ 'url': url,
+ }
+
self.to_screen('%s: Requesting header' % video_id)
head_req = HEADRequest(url)