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

<%= HTML.escape(video.title) %> <% if params[:listen] %> <% else %> <% end %>

<% if !reason.empty? %>

<%= reason %>

<% end %>

Watch video on YouTube

<%= number_with_separator(video.views) %>

<%= number_with_separator(video.likes) %>

<%= number_with_separator(video.dislikes) %>

Genre: <% if video.genre_url.empty? %> <%= video.genre %> <% else %> <%= video.genre %> <% end %>

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

License: <%= video.license %>

<% end %>

Family Friendly? <%= video.is_family_friendly %>

Wilson Score: <%= video.wilson_score.round(4) %>

Rating: <%= rating.round(4) %> / 5

Engagement: <%= engagement.round(2) %>%

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

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

<% end %>

<%= video.author %>

<% if user %> <% if subscriptions.includes? video.ucid %>

"> Unsubscribe | <%= video.sub_count_text %>

<% else %>

"> Subscribe | <%= video.sub_count_text %>

<% end %> <% else %>

"> Login to subscribe to <%= video.author %>

<% end %>

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

<%= video.description %>

<% if nojs %> <%= comment_html %> <% else %> <% end %>
<% if plid %>
<% end %> <% if !preferences || preferences && preferences.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 %>