diff --git a/app/routes.py b/app/routes.py index f6fe4ac..f2fbdd0 100644 --- a/app/routes.py +++ b/app/routes.py @@ -667,7 +667,6 @@ def getPosts(account): if userFeed != []: for post in userFeed[:-1]: date_time_str = post.find('span', attrs={'class':'tweet-date'}).find('a')['title'].replace(",","") - time = datetime.datetime.now() - datetime.datetime.strptime(date_time_str, '%d/%m/%Y %H:%M:%S') if post.find('div', attrs={'class':'pinned'}): if post.find('div', attrs={'class':'pinned'}).find('span', attrs={'icon-pin'}): diff --git a/app/static/styles.css b/app/static/styles.css index d332f52..3c49102 100644 --- a/app/static/styles.css +++ b/app/static/styles.css @@ -58,4 +58,4 @@ #toggle:checked ~ .control-me { visibility: visible; cursor: pointer; -} \ No newline at end of file +} diff --git a/app/templates/_video_item.html b/app/templates/_video_item.html index d48ef07..0c8b2cf 100644 --- a/app/templates/_video_item.html +++ b/app/templates/_video_item.html @@ -3,7 +3,11 @@ Thumbnail
+ {% if video.views == "Livestream" %} + {{video.videoTitle}} + {% else %} {{video.videoTitle}} + {% endif %}
{{video.channelName}}
@@ -12,14 +16,29 @@
- - - ‎‎{{video.views}} - - - - {{video.timeStamp}}‎‎‎‎ ‎‎‎ - + {% if video.views == "Livestream" %} + + + ‎‎{{video.views}} + + {% else %} + + + ‎‎{{video.views}} + + {% endif %} + + {% if video.timeStamp == "Scheduled" %} + + + {{video.timeStamp}}‎‎‎‎ ‎‎‎ + + {% else %} + + + {{video.timeStamp}}‎‎‎‎ ‎‎‎ + + {% endif %}