mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Fix audio-only for video.js
This commit is contained in:
parent
9e4d0bd3a5
commit
f09f971af7
2 changed files with 15 additions and 14 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue