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

This commit is contained in:
=?UTF-8?q?Sergey=20M=E2=80=A4?= 2021-02-26 14:46:08 +01:00 committed by Dominika
parent c11211efce
commit c23e70b2e7

View file

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