projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfe2b8c
)
[nytimes] improve format sorting(closes #24010)
author
Remita Amine
<remitamine@gmail.com>
Mon, 10 Feb 2020 08:42:50 +0000
(09:42 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Mon, 10 Feb 2020 08:43:20 +0000
(09:43 +0100)
youtube_dl/extractor/nytimes.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/nytimes.py
b/youtube_dl/extractor/nytimes.py
index 2bb77ab249239163d8318a57e8fd0fdb57d2e32a..fc78ca56c90d37b00c1f396aee7c896d54fb91c9 100644
(file)
--- a/
youtube_dl/extractor/nytimes.py
+++ b/
youtube_dl/extractor/nytimes.py
@@
-69,10
+69,10
@@
class NYTimesBaseIE(InfoExtractor):
'width': int_or_none(video.get('width')),
'height': int_or_none(video.get('height')),
'filesize': get_file_size(video.get('file_size') or video.get('fileSize')),
- 'tbr': int_or_none(video.get('bitrate'), 1000),
+ 'tbr': int_or_none(video.get('bitrate'), 1000)
or None
,
'ext': ext,
})
- self._sort_formats(formats)
+ self._sort_formats(formats
, ('height', 'width', 'filesize', 'tbr', 'fps', 'format_id')
)
thumbnails = []
for image in video_data.get('images', []):