aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2020-06-11 10:44:30 -0500
committerJesús <heckyel@hyperbola.info>2020-06-11 10:44:30 -0500
commit4e47debdec05e9eb321febd046c0952a1a6e4e5d (patch)
tree0cbfa01c19dd6b0213b8fde0dd70ac568c2743de /plugins
parentc4c03e563a001eb0279eedac7de700ba59d00084 (diff)
downloadlibretube-4e47debdec05e9eb321febd046c0952a1a6e4e5d.tar.lz
libretube-4e47debdec05e9eb321febd046c0952a1a6e4e5d.tar.xz
libretube-4e47debdec05e9eb321febd046c0952a1a6e4e5d.zip
tipue_search: add published
Diffstat (limited to 'plugins')
-rw-r--r--plugins/tipue-search/tipue_search.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/tipue-search/tipue_search.py b/plugins/tipue-search/tipue_search.py
index 3ce71a8..1ac3ee5 100644
--- a/plugins/tipue-search/tipue_search.py
+++ b/plugins/tipue-search/tipue_search.py
@@ -81,7 +81,11 @@ class Tipue_Search_JSON_Generator(object):
)
# 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 ''
# author
@@ -116,7 +120,8 @@ class Tipue_Search_JSON_Generator(object):
},
'author': video_author,
'authorUrl': video_author_url,
- 'publishedText': video_publish,
+ 'published': video_publish,
+ 'publishedText': video_publish_text,
'time': video_time,
'tags': video_category,
'url': video_url}