From 51579d87e4435d5e661329dcefd0422d263bb56b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sergey=20M=E2=80=A4?= Date: Sat, 5 Dec 2020 04:41:33 +0700 Subject: [PATCH] [peertube] Recognize audio-only formats (closes #27295) --- youtube_dl/extractor/peertube.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/youtube_dl/extractor/peertube.py b/youtube_dl/extractor/peertube.py index 48fb95416..2d00791d2 100644 --- a/youtube_dl/extractor/peertube.py +++ b/youtube_dl/extractor/peertube.py @@ -541,6 +541,8 @@ class PeerTubeIE(InfoExtractor): 'format_id': format_id, 'filesize': file_size, }) + if format_id == '0p': + f['vcodec'] = 'none' formats.append(f) self._sort_formats(formats) -- 2.22.2