Skip to content

Commit

Permalink
[collegehumor] Extract like count
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Mar 12, 2014
1 parent 2a5b502 commit 355271f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions youtube_dl/extractor/collegehumor.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def _real_extract(self, url):
self._sort_formats(formats)

duration = int_or_none(vdata.get('duration'), 1000)
like_count = int_or_none(vdata.get('likes'))

return {
'id': video_id,
Expand All @@ -97,4 +98,5 @@ def _real_extract(self, url):
'formats': formats,
'age_limit': age_limit,
'duration': duration,
'like_count': like_count,
}

0 comments on commit 355271f

Please sign in to comment.