diff options
author | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2014-12-01 17:35:03 +0100 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2014-12-01 17:36:12 +0100 |
commit | c41a9650c3b8c5430cd21661d668ac9fb346e397 (patch) | |
tree | 80f0d8f196f33d4e89c6b0ad4eecc0349ec3ba75 /youtube_dl/extractor/youtube.py | |
parent | df015c69eab2e7617664ed2d2982832e08c8b843 (diff) |
[youtube] Extract framerate from the dash manifest
Not all videos have 60 fps, for example they can have 48 fps.
Diffstat (limited to 'youtube_dl/extractor/youtube.py')
-rw-r--r-- | youtube_dl/extractor/youtube.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 2642ecfff..1cba40387 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -971,6 +971,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor): 'tbr': int_or_none(r.attrib.get('bandwidth'), 1000), 'asr': int_or_none(r.attrib.get('audioSamplingRate')), 'filesize': filesize, + 'fps': int_or_none(r.attrib.get('frameRate')), } try: existing_format = next( |