projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a5b502
)
[collegehumor] Extract like count
author
Sergey M․
<dstftw@gmail.com>
Wed, 12 Mar 2014 23:12:39 +0000
(06:12 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 12 Mar 2014 23:12:39 +0000
(06:12 +0700)
youtube_dl/extractor/collegehumor.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/collegehumor.py
b/youtube_dl/extractor/collegehumor.py
index 12b5fdf1cbf797951eb6a041f8fd5ad4f478bdb8..b255cb5b97e252052cf68d81f37888ffce585ff4 100644
(file)
--- a/
youtube_dl/extractor/collegehumor.py
+++ b/
youtube_dl/extractor/collegehumor.py
@@
-88,6
+88,7
@@
class CollegeHumorIE(InfoExtractor):
self._sort_formats(formats)
duration = int_or_none(vdata.get('duration'), 1000)
+ like_count = int_or_none(vdata.get('likes'))
return {
'id': video_id,
@@
-97,4
+98,5
@@
class CollegeHumorIE(InfoExtractor):
'formats': formats,
'age_limit': age_limit,
'duration': duration,
+ 'like_count': like_count,
}