mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
parent
8bd1c00bf3
commit
baf599effa
1 changed files with 4 additions and 1 deletions
|
@ -545,7 +545,7 @@ def _real_extract(self, url):
|
|||
for vid_id in video_id]
|
||||
return self.playlist_result(entries, display_id)
|
||||
|
||||
info = None
|
||||
info = {}
|
||||
redirects = []
|
||||
redirect_urls = set()
|
||||
|
||||
|
@ -660,6 +660,9 @@ def extract_redirect_urls(info):
|
|||
'protocol': 'http',
|
||||
})
|
||||
formats.append(f)
|
||||
for f in formats:
|
||||
if (f.get('format_note') or '').endswith(' AD'): # Audio description
|
||||
f['language_preference'] = -10
|
||||
self._sort_formats(formats)
|
||||
|
||||
rating_str = info.get('rating')
|
||||
|
|
Loading…
Reference in a new issue