[peertube] Recognize audio-only formats (closes #27295)

This commit is contained in:
Sergey M․ 2020-12-05 04:41:33 +07:00
parent e147619669
commit 51579d87e4
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with 2 additions and 0 deletions

View File

@ -541,6 +541,8 @@ class PeerTubeIE(InfoExtractor):
'format_id': format_id, 'format_id': format_id,
'filesize': file_size, 'filesize': file_size,
}) })
if format_id == '0p':
f['vcodec'] = 'none'
formats.append(f) formats.append(f)
self._sort_formats(formats) self._sort_formats(formats)