diff options
author | Yen Chi Hsuan <[email protected]> | 2016-10-07 19:22:30 +0800 |
---|---|---|
committer | Yen Chi Hsuan <[email protected]> | 2016-10-07 19:24:22 +0800 |
commit | 9dcd6fd3aae77571116ee8b823b6b9224d0ef2ad (patch) | |
tree | 9ac59988952a278ccd52714d29b39a5415e98957 /youtube_dl/extractor/generic.py | |
parent | 98763ee354ffc13a57f28dbd006729affacb6d30 (diff) | |
download | youtube-dl-9dcd6fd3aae77571116ee8b823b6b9224d0ef2ad.tar.gz youtube-dl-9dcd6fd3aae77571116ee8b823b6b9224d0ef2ad.zip |
[generic,commonprotocols] Move mms suuport from GenericIE
And use _generic_* helpers in those extractors
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r-- | youtube_dl/extractor/generic.py | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 1f18cbfe9..7b8a9cf9a 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -27,7 +27,6 @@ from ..utils import ( unified_strdate, unsmuggle_url, UnsupportedError, - url_basename, xpath_text, ) from .brightcove import ( @@ -1412,18 +1411,6 @@ 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 @@ -1561,14 +1548,7 @@ class GenericIE(InfoExtractor): force_videoid = smuggled_data['force_videoid'] video_id = force_videoid 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, - } + video_id = self._generic_id(url) self.to_screen('%s: Requesting header' % video_id) @@ -1597,7 +1577,7 @@ class GenericIE(InfoExtractor): info_dict = { 'id': video_id, - 'title': compat_urllib_parse_unquote(os.path.splitext(url_basename(url))[0]), + 'title': self._generic_title(url), 'upload_date': unified_strdate(head_response.headers.get('Last-Modified')) } |