tipue_search: add published

This commit is contained in:
Jesús 2020-06-11 10:44:30 -05:00
parent c4c03e563a
commit 4e47debdec
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -81,7 +81,11 @@ class Tipue_Search_JSON_Generator(object):
) )
# publish # publish
video_publish = article.date.strftime("%a, %d %B, %Y") if getattr( video_publish = article.date.isoformat() if getattr(
article, 'date', 'None') != 'None' else ''
# publish_text
video_publish_text = article.date.strftime("%a, %d %B, %Y") if getattr(
article, 'date', 'None') != 'None' else '' article, 'date', 'None') != 'None' else ''
# author # author
@ -116,7 +120,8 @@ class Tipue_Search_JSON_Generator(object):
}, },
'author': video_author, 'author': video_author,
'authorUrl': video_author_url, 'authorUrl': video_author_url,
'publishedText': video_publish, 'published': video_publish,
'publishedText': video_publish_text,
'time': video_time, 'time': video_time,
'tags': video_category, 'tags': video_category,
'url': video_url} 'url': video_url}