[Common:JWPlayer] Fix x1000 scaling error
authordirkf <fieldhouse@gmx.net>
Tue, 11 Oct 2022 12:36:44 +0000 (12:36 +0000)
committerGitHub <noreply@github.com>
Tue, 11 Oct 2022 12:36:44 +0000 (12:36 +0000)
See https://github.com/yt-dlp/yt-dlp/issues/5106#issuecomment-1264625161

youtube_dl/extractor/common.py

index 797c35fd52d7119d5b7647521345e83a25b933db..1f33a1e06dabc3ea5e901c22f2480be3a41abe46 100644 (file)
@@ -2844,7 +2844,7 @@ class InfoExtractor(object):
                     '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),
                     'ext': ext,
                 }
                 if source_url.startswith('rtmp'):