<% case item when %> <% when SearchChannel %> <% if !env.get("preferences").as(Preferences).thin_mode %>
"/>
<% end %>

<%= HTML.escape(item.author) %>

<%= translate(locale, "`x` subscribers", number_with_separator(item.subscriber_count)) %>

<% if !item.auto_generated %>

<%= translate(locale, "`x` videos", number_with_separator(item.video_count)) %>

<% end %>
<%= item.description_html %>
<% when SearchPlaylist, InvidiousPlaylist %> <% if item.id.starts_with? "RD" %> <% url = "/mix?list=#{item.id}&continuation=#{URI.parse(item.thumbnail || "/vi/-----------").request_target.split("/")[2]}" %> <% else %> <% url = "/playlist?list=#{item.id}" %> <% end %> <% if !env.get("preferences").as(Preferences).thin_mode %>
"/>

<%= number_with_separator(item.video_count) %> videos

<% end %>

<%= HTML.escape(item.title) %>

<%= HTML.escape(item.author) %>

<% when MixVideo %> <% if !env.get("preferences").as(Preferences).thin_mode %>
<% if item.length_seconds != 0 %>

<%= recode_length_seconds(item.length_seconds) %>

<% end %>
<% end %>

<%= HTML.escape(item.title) %>

<%= HTML.escape(item.author) %>

<% when PlaylistVideo %> <% if !env.get("preferences").as(Preferences).thin_mode %>
<% if plid = env.get?("remove_playlist_items") %>
" method="post"> ">

<% end %> <% if item.responds_to?(:live_now) && item.live_now %>

<%= translate(locale, "LIVE") %>

<% elsif item.length_seconds != 0 %>

<%= recode_length_seconds(item.length_seconds) %>

<% end %>
<% end %>

<%= HTML.escape(item.title) %>

<% if item.responds_to?(:premiere_timestamp) && item.premiere_timestamp.try &.> Time.utc %>

<%= translate(locale, "Premieres in `x`", recode_date((item.premiere_timestamp.as(Time) - Time.utc).ago, locale)) %>

<% elsif Time.utc - item.published > 1.minute %>

<%= translate(locale, "Shared `x` ago", recode_date(item.published, locale)) %>

<% end %>
<% if item.responds_to?(:views) && item.views %>

<%= translate(locale, "`x` views", number_to_short_text(item.views || 0)) %>

<% end %>
<% when Category %> <% else %> <% if !env.get("preferences").as(Preferences).thin_mode %>
<% if env.get? "show_watched" %>
" method="post"> ">

<% elsif plid = env.get? "add_playlist_items" %>
" method="post"> ">

<% end %> <% if item.responds_to?(:live_now) && item.live_now %>

<%= translate(locale, "LIVE") %>

<% elsif item.length_seconds != 0 %>

<%= recode_length_seconds(item.length_seconds) %>

<% end %>
<% end %>

<%= HTML.escape(item.title) %>

<% if item.responds_to?(:premiere_timestamp) && item.premiere_timestamp.try &.> Time.utc %>

<%= translate(locale, "Premieres in `x`", recode_date((item.premiere_timestamp.as(Time) - Time.utc).ago, locale)) %>

<% elsif Time.utc - item.published > 1.minute %>

<%= translate(locale, "Shared `x` ago", recode_date(item.published, locale)) %>

<% end %>
<% if item.responds_to?(:views) && item.views %>

<%= translate(locale, "`x` views", number_to_short_text(item.views || 0)) %>

<% end %>
<% end %>