diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-08-13 10:57:45 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-08-13 10:57:45 -0500 |
| commit | e04ac53336ab2b631ecda5175eaf9aa03d983f92 (patch) | |
| tree | c34504f639bb465ecf62c2e9a3281d2b6f19d20a | |
| parent | 16fb5023e0deeea862349c9942ca31e3de416d18 (diff) | |
| download | invidious-e04ac53336ab2b631ecda5175eaf9aa03d983f92.tar.gz invidious-e04ac53336ab2b631ecda5175eaf9aa03d983f92.tar.bz2 invidious-e04ac53336ab2b631ecda5175eaf9aa03d983f92.zip | |
Remove non-functional 'ad_slots'
| -rw-r--r-- | src/invidious.cr | 18 | ||||
| -rw-r--r-- | src/invidious/views/watch.ecr | 7 |
2 files changed, 0 insertions, 25 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index 2c1c98bc..07f135d0 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -264,29 +264,11 @@ 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["ad_slots"]? - ad_slots = video.info["ad_slots"].split(",") - ad_slots = ad_slots.join(", ") - end - if video.info["enabled_engage_types"]? engage_types = video.info["enabled_engage_types"].split(",") engage_types = engage_types.join(", ") end - if video.info["ad_tag"]? - ad_tag = URI.parse(video.info["ad_tag"]) - ad_query = HTTP::Params.parse(ad_tag.query.not_nil!) - - ad_category = URI.unescape(ad_query["iu"]) - ad_category = ad_category.lstrip("/4061/").split(".")[-1] - - ad_query = HTTP::Params.parse(ad_query["scp"]) - - k2 = URI.unescape(ad_query["k2"]).split(",") - k2 = k2.join(", ") - end - templated "watch" end diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index f33ccee3..6296f886 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -211,16 +211,9 @@ get_youtube_comments(); <% end %> </p> <% end %> - <% if ad_slots %> - <p id="Slots">Ad Slots: <%= ad_slots %></p> - <% end %> <% if engage_types %> <p id="Engage">Engage Types: <%= engage_types %></p> <% end %> - <% if ad_tag %> - <p id="Category">Ad Category: <%= ad_category %></p> - <p id="Tags">Ad Tags(?): <%= k2 %></p> - <% end %> </div> </div> |
