projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee94e7e
)
[theplatform] remove _sort_formats from _extract_theplatform_smil
author
remitamine
<remitamine@gmail.com>
Sat, 16 Apr 2016 09:23:56 +0000
(10:23 +0100)
committer
remitamine
<remitamine@gmail.com>
Sat, 16 Apr 2016 09:23:56 +0000
(10:23 +0100)
youtube_dl/extractor/theplatform.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/theplatform.py
b/youtube_dl/extractor/theplatform.py
index 6da701a39fff3ebec1bf9aa0cdf095b904a83cf4..7a5a533b7473bc483e64915ed2065c12c9adbdc6 100644
(file)
--- 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)