projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61be92e
)
[prosiebensat1] Modernize
author
Sergey M․
<dstftw@gmail.com>
Wed, 22 Jul 2015 21:05:16 +0000
(
03:05
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 22 Jul 2015 21:05:16 +0000
(
03:05
+0600)
youtube_dl/extractor/prosiebensat1.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/prosiebensat1.py
b/youtube_dl/extractor/prosiebensat1.py
index 0739234c6a0aa0eaffbd96ef3b4401d9200918bd..effcf1db37b06d1af40d99233359f0df295eaa03 100644
(file)
--- a/
youtube_dl/extractor/prosiebensat1.py
+++ b/
youtube_dl/extractor/prosiebensat1.py
@@
-11,6
+11,7
@@
from ..compat import (
from ..utils import (
ExtractorError,
determine_ext,
+ float_or_none,
int_or_none,
unified_strdate,
)
@@
-230,7
+231,7
@@
class ProSiebenSat1IE(InfoExtractor):
if video.get('is_protected') is True:
raise ExtractorError('This video is DRM protected.', expected=True)
- duration = float
(video['duration']
)
+ duration = float
_or_none(video.get('duration')
)
source_ids = [source['id'] for source in video['sources']]
source_ids_str = ','.join(map(str, source_ids))