mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Remove 'engage types'
This commit is contained in:
parent
bce01cba32
commit
fa2ba807a3
2 changed files with 0 additions and 8 deletions
|
@ -266,11 +266,6 @@ get "/watch" do |env|
|
||||||
rating = video.info["avg_rating"].to_f64
|
rating = video.info["avg_rating"].to_f64
|
||||||
engagement = ((video.dislikes.to_f + video.likes.to_f)/video.views * 100)
|
engagement = ((video.dislikes.to_f + video.likes.to_f)/video.views * 100)
|
||||||
|
|
||||||
if video.info["enabled_engage_types"]?
|
|
||||||
engage_types = video.info["enabled_engage_types"].split(",")
|
|
||||||
engage_types = engage_types.sort_by { |a| a.to_i }.join(", ")
|
|
||||||
end
|
|
||||||
|
|
||||||
templated "watch"
|
templated "watch"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -211,9 +211,6 @@ get_youtube_comments();
|
||||||
<% end %>
|
<% end %>
|
||||||
</p>
|
</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if engage_types %>
|
|
||||||
<p id="Engage">Engage Types: <%= engage_types %></p>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue