]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/lynda.py
[ie/crunchyroll] Fix stream extraction (#10005)
[yt-dlp.git] / yt_dlp / extractor / lynda.py
index ce304743fbd08cf4c973c17997a60bc75cd989ae..768ce913eedbe75ec5c9b5f70e3dd4990f78eff1 100644 (file)
@@ -1,5 +1,3 @@
-from __future__ import unicode_literals
-
 import re
 
 from .common import InfoExtractor
@@ -159,7 +157,6 @@ def _real_extract(self, url):
                         'format_id': '%s-%s' % (cdn, format_id) if cdn else format_id,
                         'height': int_or_none(format_id),
                     })
-            self._sort_formats(formats)
 
             conviva = self._download_json(
                 'https://www.lynda.com/ajax/player/conviva', video_id,
@@ -209,7 +206,6 @@ def _real_extract(self, url):
                 } for format_id, video_url in prioritized_stream.items()])
 
         self._check_formats(formats, video_id)
-        self._sort_formats(formats)
 
         subtitles = self.extract_subtitles(video_id)