[vidme] Prefer non clip (Closes #6924)
authorSergey M․ <dstftw@gmail.com>
Thu, 24 Sep 2015 17:38:53 +0000 (23:38 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 24 Sep 2015 17:38:53 +0000 (23:38 +0600)
youtube_dl/extractor/vidme.py

index 9a794e6090e1abcf9bf7ef7bc6f82c1a12182610..078d283b23b42a8b2c668fbd40caebde0763581c 100644 (file)
@@ -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)