mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Update metadata
This commit is contained in:
parent
baa8a66827
commit
69e70124b4
3 changed files with 7 additions and 2 deletions
|
@ -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("<br>", " ")
|
||||
description = description.gsub("<br/>", " ")
|
||||
description = XML.parse_html(description).content[0..200].gsub("\n", " ").strip(" ")
|
||||
|
||||
thumbnail = "https://i.ytimg.com/vi/#{id}/mqdefault.jpg"
|
||||
|
||||
templated "watch"
|
||||
|
|
|
@ -37,7 +37,6 @@
|
|||
<div class="pure-u-1-3">
|
||||
<a href="/feed/subscriptions" class="pure-menu-heading">
|
||||
<% notification_count = env.get("user").as(User).notifications.size %>
|
||||
<% puts notification_count %>
|
||||
<% if notification_count > 0 %>
|
||||
<center><%= notification_count %> <i class="fas fa-bell"></i></center>
|
||||
<% else %>
|
||||
|
|
|
@ -4,8 +4,9 @@
|
|||
<meta property="og:url" content="https://invidio.us/watch?v=<%= video.id %>">
|
||||
<meta property="og:title" content="<%= video.title %>">
|
||||
<meta property="og:image" content="https://i.ytimg.com/vi/<%= video.id %>/maxresdefault.jpg">
|
||||
<meta property="og:description" content="<%= description %>">
|
||||
<meta property="og:type" content="video.other">
|
||||
<meta property="og:video:url" content="https://invidio.us/embed/<%= video.id %>">
|
||||
<meta property="og:video" content="https://invidio.us/embed/<%= video.id %>">
|
||||
<meta property="og:video:secure_url" content="https://invidio.us/embed/<%= video.id %>">
|
||||
<meta property="og:video:type" content="text/html">
|
||||
<meta property="og:video:width" content="1280">
|
||||
|
@ -14,6 +15,7 @@
|
|||
<meta name="twitter:site" content="@omarroth">
|
||||
<meta name="twitter:url" content="https://invidio.us/watch?v=<%= video.id %>">
|
||||
<meta name="twitter:title" content="<%= video.title %>">
|
||||
<meta name="twitter:description" content="<%= description %>">
|
||||
<meta name="twitter:image" content="https://i.ytimg.com/vi/<%= video.id %>/maxresdefault.jpg">
|
||||
<meta name="twitter:player" content="https://invidio.us/embed/<%= video.id %>">
|
||||
<meta name="twitter:player:width" content="1280">
|
||||
|
|
Loading…
Reference in a new issue