aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/extractor/prosiebensat1.py
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2015-04-03 23:42:53 +0600
committerSergey M․ <[email protected]>2015-04-03 23:42:53 +0600
commit01534bf54f7eb80e4414cba86f1ac6fa608fc6e0 (patch)
tree34d04e0b25940552503607fb1d7d64acf855d4f7 /youtube_dl/extractor/prosiebensat1.py
parentcd341b6e0679c11b3698191615b18dbaaf2b0a76 (diff)
downloadyoutube-dl-01534bf54f7eb80e4414cba86f1ac6fa608fc6e0.tar.gz
youtube-dl-01534bf54f7eb80e4414cba86f1ac6fa608fc6e0.zip
[prosiebensat1] Fix bitrate (Closes #5350 closes #5351)
Diffstat (limited to 'youtube_dl/extractor/prosiebensat1.py')
-rw-r--r--youtube_dl/extractor/prosiebensat1.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/extractor/prosiebensat1.py b/youtube_dl/extractor/prosiebensat1.py
index 385681d06..c46aaada6 100644
--- a/youtube_dl/extractor/prosiebensat1.py
+++ b/youtube_dl/extractor/prosiebensat1.py
@@ -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: