[peertube] Recognize audio-only formats (closes #27295)
authorSergey M․ <dstftw@gmail.com>
Fri, 4 Dec 2020 21:41:33 +0000 (04:41 +0700)
committerSergey M․ <dstftw@gmail.com>
Fri, 4 Dec 2020 21:41:33 +0000 (04:41 +0700)
youtube_dl/extractor/peertube.py

index 48fb9541693c35878317f22ed9dd6e2da4412ced..2d00791d23a915c7c4738c754bfc43b4220b9c50 100644 (file)
@@ -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)