- 'http://tv.kakao.com/api/v1/ft/cliplinks/%s/impress' % video_id,
- video_id, 'Downloading video info',
- query={
- 'player': 'monet_html5',
- 'referer': url,
- 'uuid': '',
- 'service': 'kakao_tv',
- 'section': '',
- 'dteType': 'PC',
- 'fields': 'clipLink,clip,channel,hasPlusFriend,-service,-tagList'
- }, headers=player_header)
-
- clipLink = impress['clipLink']
- clip = clipLink['clip']
-
- video_info = {
- 'id': video_id,
- 'title': clip['title'],
- 'description': clip.get('description'),
- 'uploader': clipLink.get('channel', {}).get('name'),
- 'uploader_id': clipLink.get('channelId'),
- 'duration': int_or_none(clip.get('duration')),
- 'view_count': int_or_none(clip.get('playCount')),
- 'like_count': int_or_none(clip.get('likeCount')),
- 'comment_count': int_or_none(clip.get('commentCount')),
- }
+ api_base + 'impress', display_id, 'Downloading video info',
+ query=query, headers=player_header)
+
+ clip_link = impress['clipLink']
+ clip = clip_link['clip']