]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[unistra] Sort formats
authorYen Chi Hsuan <yan12125@gmail.com>
Mon, 25 Apr 2016 14:24:40 +0000 (22:24 +0800)
committerYen 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

index 66d9f1bf3fc9ff8481fb55aa8045078244b11635..a724cdbef8620821e65cb22324fcfcb33c1a3b4c 100644 (file)
@@ -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')