[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:
parent
8671f995cc
commit
d3a3d7f0cc
3 changed files with 32 additions and 14 deletions
|
|
@ -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'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue