[peertube] Extract fps
authorSergey M․ <dstftw@gmail.com>
Fri, 4 Dec 2020 21:45:30 +0000 (04:45 +0700)
committerSergey M․ <dstftw@gmail.com>
Fri, 4 Dec 2020 21:45:30 +0000 (04:45 +0700)
youtube_dl/extractor/peertube.py

index 2d00791d23a915c7c4738c754bfc43b4220b9c50..c39d12728d4fb2aa61494de77c9964d76d45d355 100644 (file)
@@ -543,6 +543,8 @@ class PeerTubeIE(InfoExtractor):
             })
             if format_id == '0p':
                 f['vcodec'] = 'none'
+            else:
+                f['fps'] = int_or_none(file_.get('fps'))
             formats.append(f)
         self._sort_formats(formats)