summary refs log tree commit diff
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-12-01 17:35:03 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-12-01 17:36:12 +0100
commitc41a9650c3b8c5430cd21661d668ac9fb346e397 (patch)
tree80f0d8f196f33d4e89c6b0ad4eecc0349ec3ba75
parentdf015c69eab2e7617664ed2d2982832e08c8b843 (diff)
downloadyoutube-dl-c41a9650c3b8c5430cd21661d668ac9fb346e397.tar.gz
youtube-dl-c41a9650c3b8c5430cd21661d668ac9fb346e397.tar.xz
youtube-dl-c41a9650c3b8c5430cd21661d668ac9fb346e397.zip
[youtube] Extract framerate from the dash manifest
Not all videos have 60 fps, for example they can have 48 fps.
-rw-r--r--youtube_dl/extractor/youtube.py1
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(