projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ee4b60
)
[vh1] use standard sort (#2072)
author
Ralf Haring
<ralf.haring@gmail.com>
Sat, 17 May 2014 03:49:41 +0000
(23:49 -0400)
committer
Ralf Haring
<ralf.haring@gmail.com>
Sat, 17 May 2014 03:49:41 +0000
(23:49 -0400)
youtube_dl/extractor/mtv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/mtv.py
b/youtube_dl/extractor/mtv.py
index 642aae81179fc74ea0230d86fc6bcc61b51a341d..e5ca41b4091698ad2a180f9d2ca00b4b96218c1e 100644
(file)
--- a/
youtube_dl/extractor/mtv.py
+++ b/
youtube_dl/extractor/mtv.py
@@
-80,8
+80,7
@@
class MTVServicesInfoExtractor(InfoExtractor):
})
except (KeyError, TypeError):
raise ExtractorError('Invalid rendition field.')
- # worst format is expected to be first and best one last
- formats.sort(key=lambda x: int(x['format_id']))
+ self._sort_formats(formats)
return formats
def _get_video_info(self, itemdoc):