mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-24 15:50:32 +01:00
parent
9297939ec3
commit
7aee40c13c
@ -3007,9 +3007,9 @@ def list_subtitles(self, video_id, subtitles, name='subtitles'):
|
||||
'Available %s for %s:' % (name, video_id))
|
||||
|
||||
def _row(lang, formats):
|
||||
exts, names = zip(*((f['ext'], f['name']) for f in reversed(formats)))
|
||||
exts, names = zip(*((f['ext'], f.get('name', 'unknown')) for f in reversed(formats)))
|
||||
if len(set(names)) == 1:
|
||||
names = names[:1]
|
||||
names = [] if names[0] == 'unknown' else names[:1]
|
||||
return [lang, ', '.join(names), ', '.join(exts)]
|
||||
|
||||
self.to_screen(render_table(
|
||||
|
Loading…
Reference in New Issue
Block a user