diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-06-20 01:27:59 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-06-20 01:27:59 +0700 |
commit | 1641ca402d03b36d28bab94eb898997cadf69993 (patch) | |
tree | e5441c4d5c7d551beeac706cd2abd1f879b30d9a /youtube_dl/extractor/vimeo.py | |
parent | 85cbcede5b9ad2b059e799bb9047264c2a38b7fe (diff) |
[vimeo] Add fallback mp4 extension for original format
Diffstat (limited to 'youtube_dl/extractor/vimeo.py')
-rw-r--r-- | youtube_dl/extractor/vimeo.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/vimeo.py b/youtube_dl/extractor/vimeo.py index a483c8409..c3f71b45e 100644 --- a/youtube_dl/extractor/vimeo.py +++ b/youtube_dl/extractor/vimeo.py @@ -615,7 +615,10 @@ class VimeoIE(VimeoBaseInfoExtractor): if download_url and not source_file.get('is_cold') and not source_file.get('is_defrosting'): source_name = source_file.get('public_name', 'Original') if self._is_valid_url(download_url, video_id, '%s video' % source_name): - ext = source_file.get('extension', determine_ext(download_url)).lower() + ext = (try_get( + source_file, lambda x: x['extension'], + compat_str) or determine_ext( + download_url, None) or 'mp4').lower() formats.append({ 'url': download_url, 'ext': ext, |