projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b248e64
)
[unistra] Sort formats
author
Yen Chi Hsuan
<yan12125@gmail.com>
Mon, 25 Apr 2016 14:24:40 +0000
(22:24 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Mon, 25 Apr 2016 14:24:40 +0000
(22:24 +0800)
Originally URLs are passed to set() and not sorted, so the result is not
deterministic, causing occasional FAILs on Travis CI.
youtube_dl/extractor/unistra.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/unistra.py
b/youtube_dl/extractor/unistra.py
index 66d9f1bf3fc9ff8481fb55aa8045078244b11635..a724cdbef8620821e65cb22324fcfcb33c1a3b4c 100644
(file)
--- a/
youtube_dl/extractor/unistra.py
+++ b/
youtube_dl/extractor/unistra.py
@@
-49,6
+49,7
@@
class UnistraIE(InfoExtractor):
'format_id': format_id,
'quality': quality(format_id)
})
+ self._sort_formats(formats)
title = self._html_search_regex(
r'<title>UTV - (.*?)</', webpage, 'title')