about summary refs log tree commit diff
path: root/youtube_dl/extractor/theplatform.py
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2016-04-16 10:23:56 +0100
committerremitamine <remitamine@gmail.com>2016-04-16 10:23:56 +0100
commita71fca8577facddf05a5a1c44691bd257047a3c3 (patch)
tree54f22963c192d51826d330f949942c22d1ca4638 /youtube_dl/extractor/theplatform.py
parentee94e7e66d8c715f0df29c22642e51cb56c612b9 (diff)
downloadyoutube-dl-a71fca8577facddf05a5a1c44691bd257047a3c3.tar.gz
youtube-dl-a71fca8577facddf05a5a1c44691bd257047a3c3.tar.xz
youtube-dl-a71fca8577facddf05a5a1c44691bd257047a3c3.zip
[theplatform] remove _sort_formats from _extract_theplatform_smil
Diffstat (limited to 'youtube_dl/extractor/theplatform.py')
-rw-r--r--youtube_dl/extractor/theplatform.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/youtube_dl/extractor/theplatform.py b/youtube_dl/extractor/theplatform.py
index 6da701a39..7a5a533b7 100644
--- a/youtube_dl/extractor/theplatform.py
+++ b/youtube_dl/extractor/theplatform.py
@@ -50,8 +50,6 @@ class ThePlatformBaseIE(OnceIE):
             else:
                 formats.append(_format)
 
-        self._sort_formats(formats)
-
         subtitles = self._parse_smil_subtitles(meta, default_ns)
 
         return formats, subtitles
@@ -241,6 +239,7 @@ class ThePlatformIE(ThePlatformBaseIE):
             smil_url = self._sign_url(smil_url, sig['key'], sig['secret'])
 
         formats, subtitles = self._extract_theplatform_smil(smil_url, video_id)
+        self._sort_formats(formats)
 
         ret = self.get_metadata(path, video_id)
         combined_subtitles = self._merge_subtitles(ret.get('subtitles', {}), subtitles)