pep8
This commit is contained in:
parent
6ae495e29b
commit
03e9329b68
@ -139,21 +139,23 @@ class Tipue_Search_JSON_Generator(object):
|
||||
data_tags = ['%s' % (tag) for tag in article.tags]
|
||||
video_tags = dict((num, tag) for num, tag in enumerate(data_tags))
|
||||
|
||||
node = {'title': video_title,
|
||||
'description': video_desc_text,
|
||||
'descriptionHtml': video_desc_html,
|
||||
'videoThumbnail': url_image,
|
||||
'formatStreams': {
|
||||
'url': video_src,
|
||||
},
|
||||
'author': video_author,
|
||||
'authorUrl': video_author_url,
|
||||
'published': video_publish,
|
||||
'publishedText': video_publish_text,
|
||||
'time': video_time,
|
||||
'category': video_category,
|
||||
'keywords': video_tags,
|
||||
'url': video_url}
|
||||
node = {
|
||||
'title': video_title,
|
||||
'description': video_desc_text,
|
||||
'descriptionHtml': video_desc_html,
|
||||
'videoThumbnail': url_image,
|
||||
'formatStreams': {
|
||||
'url': video_src,
|
||||
},
|
||||
'author': video_author,
|
||||
'authorUrl': video_author_url,
|
||||
'published': video_publish,
|
||||
'publishedText': video_publish_text,
|
||||
'time': video_time,
|
||||
'category': video_category,
|
||||
'keywords': video_tags,
|
||||
'url': video_url
|
||||
}
|
||||
|
||||
self.json_nodes.append(node)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user