From f09f971af73a1e249d5eef6ee0d7c6692d83d5c9 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Tue, 16 Jan 2018 14:02:35 -0600 Subject: [PATCH] Fix audio-only for video.js --- src/invidious.cr | 3 +-- src/views/watch.ecr | 26 ++++++++++++++------------ 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/invidious.cr b/src/invidious.cr index 24bcbdf6c..598739586 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -2,8 +2,8 @@ require "http/client" require "json" require "kemal" require "pg" -require "xml" require "time" +require "xml" PG_DB = DB.open "postgres://kemal:kemal@localhost:5432/invidious" CONTEXT = OpenSSL::SSL::Context::Client.insecure @@ -124,7 +124,6 @@ end get "/watch" do |env| id = env.params.query["v"] listen = env.params.query["listen"]? || "false" - speed = env.params.query["speed"]? && env.params.query["speed"].to_f? ? env.params.query["speed"].to_f : 1 env.params.query.delete_all("listen") diff --git a/src/views/watch.ecr b/src/views/watch.ecr index 8a16dbca1..0a5824e96 100644 --- a/src/views/watch.ecr +++ b/src/views/watch.ecr @@ -2,21 +2,23 @@ <%= video.info["title"] + " - " %> <% end %> -