From 9b9ecee63b8945e3da4caa561935b985aec46a9d Mon Sep 17 00:00:00 2001 From: Mariusz Skoneczko Date: Sun, 9 Jul 2017 13:34:50 +1000 Subject: [PATCH] [AnimeLab] Use _sort_formats --- youtube_dl/extractor/animelab.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/youtube_dl/extractor/animelab.py b/youtube_dl/extractor/animelab.py index 1ddb46e8b..ea543d02d 100644 --- a/youtube_dl/extractor/animelab.py +++ b/youtube_dl/extractor/animelab.py @@ -131,11 +131,7 @@ class AnimeLabBaseIE(InfoExtractor): formats.append(current_format) - # due to Python's sorting algorithm having the property of being 'stable', the following - # means that videos are sorted by height, but in the case of the same height, - # are sorted by language - formats.sort(key=lambda k: str.lower(k.get('language') or '')) - formats.sort(key=lambda k: k.get('height') or 0) + self._sort_formats(formats) return formats