mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-01 10:47:30 +01:00
[vimeo] Add fallback mp4 extension for original format
This commit is contained in:
parent
85cbcede5b
commit
1641ca402d
@ -615,7 +615,10 @@ def is_rented():
|
|||||||
if download_url and not source_file.get('is_cold') and not source_file.get('is_defrosting'):
|
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')
|
source_name = source_file.get('public_name', 'Original')
|
||||||
if self._is_valid_url(download_url, video_id, '%s video' % source_name):
|
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({
|
formats.append({
|
||||||
'url': download_url,
|
'url': download_url,
|
||||||
'ext': ext,
|
'ext': ext,
|
||||||
|
Loading…
Reference in New Issue
Block a user