1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-03 16:45:17 +00:00

[extractor/JWPlatform] Fix extractor (#5112)

Fix bitrate and filesize extraction and support embeds with unquoted urls.

Related: #5106 

Authored by: coletdjnz
This commit is contained in:
coletdjnz
2022-10-04 08:37:48 +13:00
committed by GitHub
parent 8671f995cc
commit d3a3d7f0cc
3 changed files with 32 additions and 14 deletions

View File

@ -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'):