From 69e70124b45ff32f51785a961bb55c5e2b87a11b Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Mon, 23 Jul 2018 08:07:24 -0500 Subject: [PATCH] Update metadata --- src/invidious.cr | 4 ++++ src/invidious/views/layout.ecr | 1 - src/invidious/views/watch.ecr | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/invidious.cr b/src/invidious.cr index c2ba8cbd..91c513a4 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -399,6 +399,10 @@ get "/watch" do |env| video.description = fill_links(video.description, "https", "www.youtube.com") video.description = add_alt_links(video.description) + description = video.description.gsub("
", " ") + description = description.gsub("
", " ") + description = XML.parse_html(description).content[0..200].gsub("\n", " ").strip(" ") + thumbnail = "https://i.ytimg.com/vi/#{id}/mqdefault.jpg" templated "watch" diff --git a/src/invidious/views/layout.ecr b/src/invidious/views/layout.ecr index 970fb6f1..8df75e3f 100644 --- a/src/invidious/views/layout.ecr +++ b/src/invidious/views/layout.ecr @@ -37,7 +37,6 @@
<% notification_count = env.get("user").as(User).notifications.size %> - <% puts notification_count %> <% if notification_count > 0 %>
<%= notification_count %>
<% else %> diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index 5c786785..1e07f9eb 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -4,8 +4,9 @@ + - + @@ -14,6 +15,7 @@ +