diff --git a/src/invidious.cr b/src/invidious.cr index 417472a1..b54630fd 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -147,9 +147,13 @@ end get "/watch" do |env| id = env.params.query["v"] - listen = env.params.query["listen"]? || "false" + if env.params.query["listen"]? && env.params.query["listen"] == "true" + listen = true env.params.query.delete_all("listen") + else + listen = false + end client = get_client(pool) begin diff --git a/src/views/watch.ecr b/src/views/watch.ecr index f727c4a9..bdbf4b92 100644 --- a/src/views/watch.ecr +++ b/src/views/watch.ecr @@ -5,7 +5,7 @@