<% content_for "header" do %> "> <%= rendered "components/player_sources" %> <%= HTML.escape(video.title) %> - Invidious <% end %>
<%= rendered "components/player" %>

<%= HTML.escape(video.title) %> <% if params[:listen] %> " href="/watch?<%= env.params.query %>&listen=0"> <% else %> " href="/watch?<%= env.params.query %>&listen=1"> <% end %>

<% if !reason.empty? %>

<%= reason %>

<% end %>

<%= translate(locale, "Watch video on Youtube") %>

<%= number_with_separator(video.views) %>

<%= number_with_separator(video.likes) %>

<%= number_with_separator(video.dislikes) %>

<%= translate(locale, "Genre: ") %> <% if video.genre_url.empty? %> <%= video.genre %> <% else %> <%= video.genre %> <% end %>

<% if !video.license.empty? %>

<%= translate(locale, "License: ") %><%= video.license %>

<% end %>

<%= translate(locale, "Family friendly? ") %><%= video.is_family_friendly %>

<%= translate(locale, "Wilson score: ") %><%= video.wilson_score.round(4) %>

<%= translate(locale, "Rating: ") %><%= rating.round(4) %> / 5

<%= translate(locale, "Engagement: ") %><%= engagement.round(2) %>%

<% if video.allowed_regions.size != REGIONS.size %>

<% if video.allowed_regions.size < REGIONS.size / 2 %> <%= translate(locale, "Whitelisted regions: ") %><%= video.allowed_regions.join(", ") %> <% else %> <%= translate(locale, "Blacklisted regions: ") %><%= (REGIONS.to_a - video.allowed_regions).join(", ") %> <% end %>

<% end %>

<%= video.author %>

<% ucid = video.ucid %> <% author = video.author %> <% sub_count_text = video.sub_count_text %> <%= rendered "components/subscribe_widget" %>

<%= translate(locale, "Shared `x`", video.published.to_s("%B %-d, %Y")) %>

<%= video.description %>

<% if params[:related_videos] || plid %>
<% if plid %>
<% end %> <% if params[:related_videos] %>
<% if !rvs.empty? %>
style="display:none"<% end %>>
checked<% end %>>

<% end %> <% rvs.each do |rv| %> <% if rv["id"]? %> "> <% if preferences && preferences.thin_mode %> <% else %>
/mqdefault.jpg">

<%= recode_length_seconds(rv["length_seconds"]?.try &.to_i? || 0) %>

<% end %>

<%= rv["title"] %>

<%= rv["author"] %>

<% end %> <% end %>
<% end %>
<% end %>