projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
539179f
)
[appletrailers] Use centralized format selection
author
Philipp Hagemeister
<phihag@phihag.de>
Wed, 25 Dec 2013 14:24:41 +0000
(15:24 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Wed, 25 Dec 2013 14:24:41 +0000
(15:24 +0100)
youtube_dl/extractor/appletrailers.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/appletrailers.py
b/youtube_dl/extractor/appletrailers.py
index ef5644aa54fe28002dc4d8c76308941c264252e3..e7361ae06e379cb44b1512c9b316e2cfe49554a0 100644
(file)
--- a/
youtube_dl/extractor/appletrailers.py
+++ b/
youtube_dl/extractor/appletrailers.py
@@
-110,7
+110,8
@@
class AppleTrailersIE(InfoExtractor):
'width': format['width'],
'height': int(format['height']),
})
- formats = sorted(formats, key=lambda f: (f['height'], f['width']))
+
+ self._sort_formats(formats)
playlist.append({
'_type': 'video',