diff options
| author | Omar Roth <omarroth@hotmail.com> | 2019-01-19 10:41:20 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2019-01-19 10:42:03 -0600 |
| commit | cf9134416c6c2cbdd6c9db94179fde5dc597e94a (patch) | |
| tree | d0c1142d7e22779ba310c866185718a3003b7145 | |
| parent | 2425368c3ab23a438f15fe77910050f164c4934c (diff) | |
| download | invidious-cf9134416c6c2cbdd6c9db94179fde5dc597e94a.tar.gz invidious-cf9134416c6c2cbdd6c9db94179fde5dc597e94a.tar.bz2 invidious-cf9134416c6c2cbdd6c9db94179fde5dc597e94a.zip | |
Remove unnecessary comment
| -rw-r--r-- | src/invidious.cr | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index b20f0cd9..f8a7d759 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -392,9 +392,7 @@ get "/watch" do |env| rvs << HTTP::Params.parse(rv).to_h end - # rating = (video.likes.to_f/(video.likes.to_f + video.dislikes.to_f) * 4 + 1) rating = video.info["avg_rating"].to_f64 - engagement = ((video.dislikes.to_f + video.likes.to_f)/video.views * 100) playability_status = video.player_response["playabilityStatus"]? @@ -2524,7 +2522,7 @@ get "/api/v1/videos/:id" do |env| if video.player_response["streamingData"]?.try &.["hlsManifestUrl"]? host_url = make_host_url(Kemal.config.ssl || CONFIG.https_only, CONFIG.domain) - + host_params = env.request.query_params host_params.delete_all("v") |
