[prosiebensat1] Fix bitrate calculation
authorPhilipp Hagemeister <phihag@phihag.de>
Sat, 13 Sep 2014 05:35:27 +0000 (07:35 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Sat, 13 Sep 2014 05:35:27 +0000 (07:35 +0200)
youtube_dl/extractor/prosiebensat1.py

index da64a1a7b4c0d8bceb89415894c84d651c7ac566..421998e914c20af064696bee0024f1a2277cffa0 100644 (file)
@@ -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']