]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[generic] Support direct MMS links (closes #10838)
authorYen Chi Hsuan <yan12125@gmail.com>
Fri, 7 Oct 2016 09:50:45 +0000 (17:50 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Fri, 7 Oct 2016 09:50:45 +0000 (17:50 +0800)
ChangeLog
youtube_dl/extractor/generic.py

index 4f64edabb0255183a3ee62b204e46269d7535bd3..55e60758d675d459e63f28f34f27db549cdf0910 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+version <unreleased>
+
+Extractors
++ [generic] Support direct MMS links (#10838)
+
+
 version 2016.10.02
 
 Core
index 8ef8fb5f4bb496b73041c003562a4ba035c39515..1f18cbfe955c1046648c970d74125356e5fa6368 100644 (file)
@@ -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)