aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/collegehumor.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2014-03-13 06:12:39 +0700
committerSergey M․ <dstftw@gmail.com>2014-03-13 06:12:39 +0700
commit355271fb61c2bff706879da101d0e2a7f2ad79a3 (patch)
tree4a450dc5c1e48f6146cf54ad9c368c4c794da037 /youtube_dl/extractor/collegehumor.py
parent2a5b502364ff90ac31605a57f41f0fc6290440ce (diff)
[collegehumor] Extract like count
Diffstat (limited to 'youtube_dl/extractor/collegehumor.py')
-rw-r--r--youtube_dl/extractor/collegehumor.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/extractor/collegehumor.py b/youtube_dl/extractor/collegehumor.py
index 12b5fdf1c..b255cb5b9 100644
--- 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,
}