[flickr] extract views_count and tags
This commit is contained in:
parent
967c9076a3
commit
5b95419ca5
|
@ -25,6 +25,8 @@ class FlickrIE(InfoExtractor):
|
||||||
'uploader_id': '10922353@N03',
|
'uploader_id': '10922353@N03',
|
||||||
'uploader': 'Forest Wander',
|
'uploader': 'Forest Wander',
|
||||||
'comment_count': int,
|
'comment_count': int,
|
||||||
|
'view_count': int,
|
||||||
|
'tags': list,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -78,6 +80,8 @@ class FlickrIE(InfoExtractor):
|
||||||
'uploader_id': owner.get('nsid'),
|
'uploader_id': owner.get('nsid'),
|
||||||
'uploader': owner.get('realname'),
|
'uploader': owner.get('realname'),
|
||||||
'comment_count': int_or_none(video_info.get('comments', {}).get('_content')),
|
'comment_count': int_or_none(video_info.get('comments', {}).get('_content')),
|
||||||
|
'view_count': int_or_none(video_info.get('views')),
|
||||||
|
'tags': [tag.get('_content') for tag in video_info.get('tags', {}).get('tag', [])]
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
raise ExtractorError('not a video', expected=True)
|
raise ExtractorError('not a video', expected=True)
|
||||||
|
|
Loading…
Reference in New Issue