diff options
author | coletdjnz <coletdjnz@protonmail.com> | 2022-10-04 08:37:48 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-03 19:37:48 +0000 |
commit | d3a3d7f0cc27ca78aeb807b27c7ebee88ff3161e (patch) | |
tree | 22e9aded6d3f0ace3c9f8a5db41e4f016343a1ad /yt_dlp/extractor/common.py | |
parent | 8671f995cc5296f1bc9f68afc886353b5a9e40aa (diff) | |
download | hypervideo-pre-d3a3d7f0cc27ca78aeb807b27c7ebee88ff3161e.tar.lz hypervideo-pre-d3a3d7f0cc27ca78aeb807b27c7ebee88ff3161e.tar.xz hypervideo-pre-d3a3d7f0cc27ca78aeb807b27c7ebee88ff3161e.zip |
[extractor/JWPlatform] Fix extractor (#5112)
Fix bitrate and filesize extraction and support embeds with unquoted urls.
Related: #5106
Authored by: coletdjnz
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r-- | yt_dlp/extractor/common.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index caec0ccf6..0700b4767 100644 --- a/yt_dlp/extractor/common.py +++ b/yt_dlp/extractor/common.py @@ -3587,7 +3587,8 @@ class InfoExtractor: 'url': source_url, 'width': int_or_none(source.get('width')), 'height': height, - 'tbr': int_or_none(source.get('bitrate')), + 'tbr': int_or_none(source.get('bitrate'), scale=1000), + 'filesize': int_or_none(source.get('filesize')), 'ext': ext, } if source_url.startswith('rtmp'): |