1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-26 04:02:11 +00:00

[prosiebensat1] Fix bitrate (Closes #5350 closes #5351)

This commit is contained in:
Sergey M․ 2015-04-03 23:42:53 +06:00
parent cd341b6e06
commit 01534bf54f

View file

@ -10,6 +10,7 @@ from ..compat import (
)
from ..utils import (
unified_strdate,
int_or_none,
)
@ -266,6 +267,9 @@ class ProSiebenSat1IE(InfoExtractor):
urls_sources = urls_sources.values()
def fix_bitrate(bitrate):
bitrate = int_or_none(bitrate)
if not bitrate:
return None
return (bitrate // 1000) if bitrate % 1000 == 0 else bitrate
for source in urls_sources: