tipue_search: add published
This commit is contained in:
parent
c4c03e563a
commit
4e47debdec
@ -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}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user