% content_for "header" do %> "> <%= rendered "components/player_sources" %>
<%= translate(locale, "Watch on YouTube") %>
<% if params.annotations %> <%= translate(locale, "Hide annotations") %> <% else %> <%=translate(locale, "Show annotations")%> <% end %>
<% if CONFIG.dmca_content.includes? video.id %>Download is disabled.
<% else %> <% end %><%= 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? ") %><%= translate_bool(locale, 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 %><%= recode_length_seconds(rv["length_seconds"]?.try &.to_i? || 0) %>
<%= rv["title"] %>