mirror of
https://github.com/iv-org/invidious.git
synced 2025-11-04 22:51:58 +00:00
Add engagement rating, rating, likes, dislikes, and form of logging (primitive but in the hope of reverse-engineering requests)
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<% title = URI.unescape(video_info["title"].as(String), true) %>
|
||||
<h1><%= title %></h1>
|
||||
<video style="width: 100%" poster="<%= video_info["iurlhq720"] %>" controls>
|
||||
<h1><%= video_info["title"] %></h1>
|
||||
<video style="width: 100%" poster="<%= video_info.has_key?("iurlhq720") ? video_info["iurlhq720"] : video_info["iurl"] %>" controls>
|
||||
<% video_info["adaptive_fmts"].as(Hash).each do |key, value| %>
|
||||
<% url = value["url"] %>
|
||||
<% type = value["type"].to_s.split(";")[0] %>
|
||||
|
||||
@@ -1,20 +1,23 @@
|
||||
<% title = URI.unescape(video_info["title"].as(String), true) %>
|
||||
<h1><%= title %></h1>
|
||||
<video style="width: 100%" poster="<%= video_info["iurl"] %>" controls>
|
||||
<% video_info["url_encoded_fmt_stream_map"].as(Hash).each do |key, value| %>
|
||||
<% url = value["url"] %>
|
||||
<% type = value["type"]["0"].to_s.split(";")[0] %>
|
||||
<source src="<%= url %>" type="<%= type %>">
|
||||
<video style="width: 100%" poster="<%= video_info.has_key?("iurlhq720") ? video_info["iurlhq720"] : video_info["iurlmq"] %>" controls>
|
||||
<% fmt_stream.each do |fmt| %>
|
||||
<source src="<%= fmt["url"] %>" type="<%= fmt["type"].split(";")[0] %>">
|
||||
<% end %>
|
||||
</video>
|
||||
<h1><%= video_info["title"] %></h1>
|
||||
<div class="pure-g">
|
||||
<div class="pure-u-1 pure-u-md-1-5">
|
||||
<p>Likes: <%= likes %></p>
|
||||
<p>Dislikes: <%= dislikes %></p>
|
||||
<p>+ <%= likes %></p>
|
||||
<p>- <%= dislikes %></p>
|
||||
</div>
|
||||
<div class="pure-u-1 pure-u-md-3-5"></div>
|
||||
<div class="pure-u-1 pure-u-md-1-5">
|
||||
<div class="pure-u-1 pure-u-md-3-5">
|
||||
<p>Views : <%= video_info["view_count"] %></p>
|
||||
<p>Rating : <%= video_info["avg_rating"] %></p>
|
||||
<p>Calculated Rating : <%= calculated_rating %></p>
|
||||
<p>Engagement : <%= engagement %>%</p>
|
||||
</div>
|
||||
<div class="pure-u-1 pure-u-md-1-5">
|
||||
<% fmt_stream.each do |fmt| %>
|
||||
<p><%= fmt["quality"] %></p>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user