From: Sergey M․ Date: Wed, 12 Mar 2014 23:12:39 +0000 (+0700) Subject: [collegehumor] Extract like count X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=355271fb61c2bff706879da101d0e2a7f2ad79a3;p=youtube-dl.git [collegehumor] Extract like count --- 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, }