Browse Source

[theplatform] remove _sort_formats from _extract_theplatform_smil

totalwebcasting
remitamine 9 years ago
parent
commit
a71fca8577
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      youtube_dl/extractor/theplatform.py

+ 1
- 2
youtube_dl/extractor/theplatform.py View File

@ -50,8 +50,6 @@ class ThePlatformBaseIE(OnceIE):
else: else:
formats.append(_format) formats.append(_format)
self._sort_formats(formats)
subtitles = self._parse_smil_subtitles(meta, default_ns) subtitles = self._parse_smil_subtitles(meta, default_ns)
return formats, subtitles return formats, subtitles
@ -241,6 +239,7 @@ class ThePlatformIE(ThePlatformBaseIE):
smil_url = self._sign_url(smil_url, sig['key'], sig['secret']) smil_url = self._sign_url(smil_url, sig['key'], sig['secret'])
formats, subtitles = self._extract_theplatform_smil(smil_url, video_id) formats, subtitles = self._extract_theplatform_smil(smil_url, video_id)
self._sort_formats(formats)
ret = self.get_metadata(path, video_id) ret = self.get_metadata(path, video_id)
combined_subtitles = self._merge_subtitles(ret.get('subtitles', {}), subtitles) combined_subtitles = self._merge_subtitles(ret.get('subtitles', {}), subtitles)


Loading…
Cancel
Save