projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd341b6
)
[prosiebensat1] Fix bitrate (Closes #5350 closes #5351)
author
Sergey M․
<dstftw@gmail.com>
Fri, 3 Apr 2015 17:42:53 +0000
(23:42 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 3 Apr 2015 17:42:53 +0000
(23:42 +0600)
youtube_dl/extractor/prosiebensat1.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/prosiebensat1.py
b/youtube_dl/extractor/prosiebensat1.py
index 385681d06e3dda356193d9f89c7ccbdd4cbde453..c46aaada6c29cf065b023d8787b5f2f951ed6969 100644
(file)
--- 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: