mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-14 14:46:50 +01:00
parent
cd341b6e06
commit
01534bf54f
@ -10,6 +10,7 @@
|
|||||||
)
|
)
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
unified_strdate,
|
unified_strdate,
|
||||||
|
int_or_none,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@ -266,6 +267,9 @@ def _extract_clip(self, url, webpage):
|
|||||||
urls_sources = urls_sources.values()
|
urls_sources = urls_sources.values()
|
||||||
|
|
||||||
def fix_bitrate(bitrate):
|
def fix_bitrate(bitrate):
|
||||||
|
bitrate = int_or_none(bitrate)
|
||||||
|
if not bitrate:
|
||||||
|
return None
|
||||||
return (bitrate // 1000) if bitrate % 1000 == 0 else bitrate
|
return (bitrate // 1000) if bitrate % 1000 == 0 else bitrate
|
||||||
|
|
||||||
for source in urls_sources:
|
for source in urls_sources:
|
||||||
|
Loading…
Reference in New Issue
Block a user