diff options
author | remitamine <remitamine@gmail.com> | 2015-12-21 00:20:22 +0100 |
---|---|---|
committer | remitamine <remitamine@gmail.com> | 2015-12-21 00:20:22 +0100 |
commit | 5b95419ca59e6238ab0041d48a53a9e51485e1cc (patch) | |
tree | ac3440ceea4e818fc8df5119eb69bdfb0d0f48f6 /youtube_dl/extractor/flickr.py | |
parent | 967c9076a31ca2a2b43fb71082ad1a8db88116bd (diff) |
[flickr] extract views_count and tags
Diffstat (limited to 'youtube_dl/extractor/flickr.py')
-rw-r--r-- | youtube_dl/extractor/flickr.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/extractor/flickr.py b/youtube_dl/extractor/flickr.py index 92d2ac553..452b27b26 100644 --- a/youtube_dl/extractor/flickr.py +++ b/youtube_dl/extractor/flickr.py @@ -25,6 +25,8 @@ class FlickrIE(InfoExtractor): 'uploader_id': '10922353@N03', 'uploader': 'Forest Wander', 'comment_count': int, + 'view_count': int, + 'tags': list, } } @@ -78,6 +80,8 @@ class FlickrIE(InfoExtractor): 'uploader_id': owner.get('nsid'), 'uploader': owner.get('realname'), '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: raise ExtractorError('not a video', expected=True) |