diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-08-16 13:11:38 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-08-16 13:11:38 -0500 |
| commit | fa2ba807a3ad16b3fd84bb24eb4610ff3c397063 (patch) | |
| tree | 64720aa694ab9ba4f009d70e9eb862af48a12f29 /src | |
| parent | bce01cba3265dcad5837acb2d8cafb84ad3fba0a (diff) | |
| download | invidious-fa2ba807a3ad16b3fd84bb24eb4610ff3c397063.tar.gz invidious-fa2ba807a3ad16b3fd84bb24eb4610ff3c397063.tar.bz2 invidious-fa2ba807a3ad16b3fd84bb24eb4610ff3c397063.zip | |
Remove 'engage types'
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious.cr | 5 | ||||
| -rw-r--r-- | src/invidious/views/watch.ecr | 3 |
2 files changed, 0 insertions, 8 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index 2f39862c..616af019 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -266,11 +266,6 @@ get "/watch" do |env| rating = video.info["avg_rating"].to_f64 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" end diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index 03e40af6..cd757f5c 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -211,9 +211,6 @@ get_youtube_comments(); <% end %> </p> <% end %> - <% if engage_types %> - <p id="Engage">Engage Types: <%= engage_types %></p> - <% end %> </div> </div> |
