1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[youtube] Extract framerate from the dash manifest

Not all videos have 60 fps, for example they can have 48 fps.
This commit is contained in:
Jaime Marquínez Ferrándiz 2014-12-01 17:35:03 +01:00
parent df015c69ea
commit c41a9650c3

View file

@ -971,6 +971,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
'tbr': int_or_none(r.attrib.get('bandwidth'), 1000), 'tbr': int_or_none(r.attrib.get('bandwidth'), 1000),
'asr': int_or_none(r.attrib.get('audioSamplingRate')), 'asr': int_or_none(r.attrib.get('audioSamplingRate')),
'filesize': filesize, 'filesize': filesize,
'fps': int_or_none(r.attrib.get('frameRate')),
} }
try: try:
existing_format = next( existing_format = next(