Browse Source

[vidme] Prefer non clip (Closes #6924)

Sergey M․ 10 years ago
parent
commit
05b476a270
1 changed files with 1 additions and 0 deletions
  1. 1 0
      youtube_dl/extractor/vidme.py

+ 1 - 0
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)