aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/unistra.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-04-25 22:24:40 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-04-25 22:24:40 +0800
commitabc1723edd03d38b256e012d465e3343064f5682 (patch)
treebf8b533f41f166e3e699e52b401356e17fd5f1a6 /youtube_dl/extractor/unistra.py
parentb248e6485bb83839a9f2f91078a92eb5b2fc3b6a (diff)
[unistra] Sort formats
Originally URLs are passed to set() and not sorted, so the result is not deterministic, causing occasional FAILs on Travis CI.
Diffstat (limited to 'youtube_dl/extractor/unistra.py')
-rw-r--r--youtube_dl/extractor/unistra.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube_dl/extractor/unistra.py b/youtube_dl/extractor/unistra.py
index 66d9f1bf3..a724cdbef 100644
--- 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')