youtube-dl: Fix returning the best format
This commit is contained in:
parent
77ee2a53a2
commit
10be4fb695
1 changed files with 2 additions and 1 deletions
|
|
@ -935,7 +935,8 @@ class VideoPage(BaseYoutubePage):
|
|||
|
||||
self._sort_formats(formats)
|
||||
|
||||
return formats[0]['url'], formats[0]['ext']
|
||||
best = formats[-1]
|
||||
return best['url'], best['ext']
|
||||
|
||||
def _sort_formats(self, formats):
|
||||
if not formats:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue