1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[generic] Support direct MMS links (closes #10838)

This commit is contained in:
Yen Chi Hsuan 2016-10-07 17:50:45 +08:00
parent c0a7b9b348
commit 3d83a1ae92
No known key found for this signature in database
GPG key ID: 3FDDD575826C5C30
2 changed files with 25 additions and 0 deletions

View file

@ -1,3 +1,9 @@
version <unreleased>
Extractors
+ [generic] Support direct MMS links (#10838)
version 2016.10.02 version 2016.10.02
Core Core

View file

@ -1412,6 +1412,18 @@ class GenericIE(InfoExtractor):
}, },
'playlist_mincount': 3, '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 # # TODO: find another test
# # http://schema.org/VideoObject # # http://schema.org/VideoObject
@ -1551,6 +1563,13 @@ class GenericIE(InfoExtractor):
else: else:
video_id = compat_urllib_parse_unquote(os.path.splitext(url.rstrip('/').split('/')[-1])[0]) 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) self.to_screen('%s: Requesting header' % video_id)
head_req = HEADRequest(url) head_req = HEADRequest(url)