aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/common.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-06-11 00:33:54 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-06-11 05:00:12 +0530
commit56ba69e4c991e81a449882258be08d0b6b98c648 (patch)
tree8ee7d44819c3be3ee93001c3dec791c3804a9acb /yt_dlp/extractor/common.py
parentd05460e5fee0dca9ab7463c78c630653fb37dcde (diff)
downloadhypervideo-pre-56ba69e4c991e81a449882258be08d0b6b98c648.tar.lz
hypervideo-pre-56ba69e4c991e81a449882258be08d0b6b98c648.tar.xz
hypervideo-pre-56ba69e4c991e81a449882258be08d0b6b98c648.zip
[cleanup] Misc fixes
Closes #4027
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r--yt_dlp/extractor/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py
index f63be0975..1cf8581b6 100644
--- a/yt_dlp/extractor/common.py
+++ b/yt_dlp/extractor/common.py
@@ -1487,7 +1487,7 @@ class InfoExtractor:
# however some websites are using 'Text' type instead.
# 1. https://schema.org/VideoObject
'uploader': author.get('name') if isinstance(author, dict) else author if isinstance(author, compat_str) else None,
- 'filesize': float_or_none(e.get('contentSize')),
+ 'filesize': int_or_none(float_or_none(e.get('contentSize'))),
'tbr': int_or_none(e.get('bitrate')),
'width': int_or_none(e.get('width')),
'height': int_or_none(e.get('height')),