about summary refs log tree commit diff
path: root/youtube_dl/extractor/spiegel.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-12-24 12:40:23 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-12-24 12:40:23 +0100
commite6812ac99dfc9117f3dd78425bf4bbe01601ecfd (patch)
tree9be1adb517b9c7287338eddf0ef02dceba16475d /youtube_dl/extractor/spiegel.py
parent719d3927d7072a180682df4dee6fc10fc2170800 (diff)
downloadyoutube-dl-e6812ac99dfc9117f3dd78425bf4bbe01601ecfd.tar.gz
youtube-dl-e6812ac99dfc9117f3dd78425bf4bbe01601ecfd.tar.xz
youtube-dl-e6812ac99dfc9117f3dd78425bf4bbe01601ecfd.zip
[spiegel] Use centralized sorting
Diffstat (limited to 'youtube_dl/extractor/spiegel.py')
-rw-r--r--youtube_dl/extractor/spiegel.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/spiegel.py b/youtube_dl/extractor/spiegel.py
index 695520524..051a34d5b 100644
--- a/youtube_dl/extractor/spiegel.py
+++ b/youtube_dl/extractor/spiegel.py
@@ -51,9 +51,10 @@ class SpiegelIE(InfoExtractor):
             # Blacklist type 6, it's extremely LQ and not available on the same server
             if n.tag.startswith('type') and n.tag != 'type6'
         ]
-        formats.sort(key=lambda f: f['vbr'])
         duration = float(idoc[0].findall('./duration')[0].text)
 
+        self._sort_formats(formats)
+
         info = {
             'id': video_id,
             'title': video_title,