[peertube] Extract fps

This commit is contained in:
=?UTF-8?q?Sergey=20M=E2=80=A4?= 2021-02-26 14:46:16 +01:00 committed by Laura Liberda
parent b79c74dad9
commit 93e7c99ad6

View file

@ -134,6 +134,8 @@ class PeerTubeSHIE(SelfhostedInfoExtractor):
})
if format_id == '0p':
f['vcodec'] = 'none'
else:
f['fps'] = int_or_none(file_.get('fps'))
formats.append(f)
self._sort_formats(formats)