aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/wistia.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-01-01 20:23:47 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-01-01 20:23:49 +0100
commit08d13955dd56027d8ca61b70c6cbab6925367fb4 (patch)
tree52acb4b623767f1d8a2b6e7df323f7e52963306a /youtube_dl/extractor/wistia.py
parenta17c95f5e43284dda42ee0dd4002c618de2ea044 (diff)
[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.
Diffstat (limited to 'youtube_dl/extractor/wistia.py')
-rw-r--r--youtube_dl/extractor/wistia.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube_dl/extractor/wistia.py b/youtube_dl/extractor/wistia.py
index 584550455..bc31c2e64 100644
--- a/youtube_dl/extractor/wistia.py
+++ b/youtube_dl/extractor/wistia.py
@@ -44,6 +44,7 @@ class WistiaIE(InfoExtractor):
'height': a['height'],
'filesize': a['size'],
'ext': a['ext'],
+ 'preference': 1 if atype == 'original' else None,
})
self._sort_formats(formats)