diff options
Diffstat (limited to 'plugins/tipue-search/tipue_search.py')
-rw-r--r-- | plugins/tipue-search/tipue_search.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/tipue-search/tipue_search.py b/plugins/tipue-search/tipue_search.py index d93b977..19ef68f 100644 --- a/plugins/tipue-search/tipue_search.py +++ b/plugins/tipue-search/tipue_search.py @@ -94,6 +94,10 @@ class Tipue_Search_JSON_Generator(object): else: base_url = self.siteurl + # videoid + video_id = str(article.videoid) if getattr( + article, 'videoid', 'None') != 'None' else '' + # thumbnail video_image = article.image if getattr( article, 'image', 'None') != 'None' else '' @@ -140,6 +144,7 @@ class Tipue_Search_JSON_Generator(object): video_tags = dict((num, tag) for num, tag in enumerate(data_tags)) node = { + 'videoId': video_id, 'title': video_title, 'description': video_desc_text, 'descriptionHtml': video_desc_html, |