projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4395ca2
)
[vidme] Prefer non clip (Closes #6924)
author
Sergey M․
<dstftw@gmail.com>
Thu, 24 Sep 2015 17:38:53 +0000
(23:38 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 24 Sep 2015 17:38:53 +0000
(23:38 +0600)
youtube_dl/extractor/vidme.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vidme.py
b/youtube_dl/extractor/vidme.py
index 9a794e6090e1abcf9bf7ef7bc6f82c1a12182610..078d283b23b42a8b2c668fbd40caebde0763581c 100644
(file)
--- 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)