mirror of
https://source.netsyms.com/Mirrors/youtube-dl
synced 2024-11-03 03:40:20 +00:00
[wistia] Prefer original video format above all others
We could also set up a formula which would weigh filesize/bitrate and vcodec/acodec (say, 1GB h264 < 3 GB MPEG2 < 2 GB h264), but that would get really messy real soon.
This commit is contained in:
parent
a17c95f5e4
commit
08d13955dd
@ -69,7 +69,8 @@ class InfoExtractor(object):
|
|||||||
download, lower-case.
|
download, lower-case.
|
||||||
"http", "https", "rtsp", "rtmp" or so.
|
"http", "https", "rtsp", "rtmp" or so.
|
||||||
* preference Order number of this format. If this field is
|
* preference Order number of this format. If this field is
|
||||||
present, the formats get sorted by this field.
|
present and not None, the formats get sorted
|
||||||
|
by this field.
|
||||||
-1 for default (order by other properties),
|
-1 for default (order by other properties),
|
||||||
-2 or smaller for less than default.
|
-2 or smaller for less than default.
|
||||||
url: Final video URL.
|
url: Final video URL.
|
||||||
|
@ -44,6 +44,7 @@ class WistiaIE(InfoExtractor):
|
|||||||
'height': a['height'],
|
'height': a['height'],
|
||||||
'filesize': a['size'],
|
'filesize': a['size'],
|
||||||
'ext': a['ext'],
|
'ext': a['ext'],
|
||||||
|
'preference': 1 if atype == 'original' else None,
|
||||||
})
|
})
|
||||||
|
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
Loading…
Reference in New Issue
Block a user