projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7e327c
)
[rutube] Use bool_or_none
author
Sergey M․
<dstftw@gmail.com>
Sun, 10 Sep 2017 12:09:27 +0000
(19:09 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 10 Sep 2017 12:09:27 +0000
(19:09 +0700)
youtube_dl/extractor/rutube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/rutube.py
b/youtube_dl/extractor/rutube.py
index 5a184879fb0b7f90b0f7187d27c1314766de2669..828c03b483e15f69bca13821dd6fbe6b61b54e05 100644
(file)
--- a/
youtube_dl/extractor/rutube.py
+++ b/
youtube_dl/extractor/rutube.py
@@
-12,9
+12,10
@@
from ..compat import (
)
from ..utils import (
determine_ext,
- unified_timestamp,
- try_get,
+ bool_or_none,
int_or_none,
+ try_get,
+ unified_timestamp,
)
@@
-42,7
+43,7
@@
class RutubeBaseIE(InfoExtractor):
'age_limit': age_limit,
'view_count': int_or_none(video.get('hits')),
'comment_count': int_or_none(video.get('comments_count')),
- 'is_live':
video.get('is_livestream'
),
+ 'is_live':
bool_or_none(video.get('is_livestream')
),
}