mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-12-23 04:30:10 +09:00
[peertube] Recognize audio-only formats (closes #27295)
This commit is contained in:
parent
e147619669
commit
51579d87e4
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user