From: Philipp Hagemeister Date: Sat, 13 Sep 2014 05:35:27 +0000 (+0200) Subject: [prosiebensat1] Fix bitrate calculation X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=5309602106a0365745de6d5f5c7cd248b54d8d43;p=youtube-dl [prosiebensat1] Fix bitrate calculation --- diff --git a/youtube_dl/extractor/prosiebensat1.py b/youtube_dl/extractor/prosiebensat1.py index da64a1a7b..421998e91 100644 --- a/youtube_dl/extractor/prosiebensat1.py +++ b/youtube_dl/extractor/prosiebensat1.py @@ -249,7 +249,7 @@ class ProSiebenSat1IE(InfoExtractor): urls_sources = urls_sources.values() def fix_bitrate(bitrate): - return bitrate / 1000 if bitrate % 1000 == 0 else bitrate + return (bitrate // 1000) if bitrate % 1000 == 0 else bitrate for source in urls_sources: protocol = source['protocol']