commit 05b476a27087a45b8d418607123d8db62bf1770f
parent 4395ca2e04f38c110259270fa4dfc4d9814aa926
Author: Sergey M․ <dstftw@gmail.com>
Date: Thu, 24 Sep 2015 23:38:53 +0600
[vidme] Prefer non clip (Closes #6924)
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/youtube_dl/extractor/vidme.py b/youtube_dl/extractor/vidme.py
@@ -119,6 +119,7 @@ class VidmeIE(InfoExtractor):
'url': f['uri'],
'width': int_or_none(f.get('width')),
'height': int_or_none(f.get('height')),
+ 'preference': 0 if f.get('type', '').endswith('clip') else 1,
} for f in video.get('formats', []) if f.get('uri')]
self._sort_formats(formats)