This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
youtube-dl
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
1.1k
Wiki
Activity
Browse Source
[appletrailers] Use centralized format selection
totalwebcasting
Philipp Hagemeister
11 years ago
parent
539179f45b
commit
7b8af56340
1 changed files
with
2 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
youtube_dl/extractor/appletrailers.py
+ 2
- 1
youtube_dl/extractor/appletrailers.py
View File
@ -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
'
,
Write
Preview
Loading…
Cancel
Save