diff --git a/src/invidious.cr b/src/invidious.cr index 417472a14..b54630fdc 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 f727c4a9c..bdbf4b921 100644 --- a/src/views/watch.ecr +++ b/src/views/watch.ecr @@ -5,7 +5,7 @@