summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2024-11-08 23:27:22 +0100
committerSamantaz Fox <coding@samantaz.fr>2024-11-08 23:27:22 +0100
commit4f7a18a6301952db5c4d651e58bcc81e681a3246 (patch)
treeab908ad99c9135425c29181221d7ef0ffa8250b6
parent42da2547e3885cc2ab305465970f4c0a2cc824ad (diff)
parentc24ed85110cfa006992ce16bd4432eb39c8db71b (diff)
downloadinvidious-4f7a18a6301952db5c4d651e58bcc81e681a3246.tar.gz
invidious-4f7a18a6301952db5c4d651e58bcc81e681a3246.tar.bz2
invidious-4f7a18a6301952db5c4d651e58bcc81e681a3246.zip
Fix named arg syntax when passing force_resolve (#4754)
No related issue
-rw-r--r--src/invidious/routes/video_playback.cr8
-rw-r--r--src/invidious/yt_backend/connection_pool.cr2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/invidious/routes/video_playback.cr b/src/invidious/routes/video_playback.cr
index 24693662..26852d06 100644
--- a/src/invidious/routes/video_playback.cr
+++ b/src/invidious/routes/video_playback.cr
@@ -42,7 +42,7 @@ module Invidious::Routes::VideoPlayback
headers["Range"] = "bytes=#{range_for_head}"
end
- client = make_client(URI.parse(host), region, force_resolve = true)
+ client = make_client(URI.parse(host), region, force_resolve: true)
response = HTTP::Client::Response.new(500)
error = ""
5.times do
@@ -57,7 +57,7 @@ module Invidious::Routes::VideoPlayback
if new_host != host
host = new_host
client.close
- client = make_client(URI.parse(new_host), region, force_resolve = true)
+ client = make_client(URI.parse(new_host), region, force_resolve: true)
end
url = "#{location.request_target}&host=#{location.host}#{region ? "&region=#{region}" : ""}"
@@ -71,7 +71,7 @@ module Invidious::Routes::VideoPlayback
fvip = "3"
host = "https://r#{fvip}---#{mn}.googlevideo.com"
- client = make_client(URI.parse(host), region, force_resolve = true)
+ client = make_client(URI.parse(host), region, force_resolve: true)
rescue ex
error = ex.message
end
@@ -196,7 +196,7 @@ module Invidious::Routes::VideoPlayback
break
else
client.close
- client = make_client(URI.parse(host), region, force_resolve = true)
+ client = make_client(URI.parse(host), region, force_resolve: true)
end
end
diff --git a/src/invidious/yt_backend/connection_pool.cr b/src/invidious/yt_backend/connection_pool.cr
index 083c10c2..7bbccfd5 100644
--- a/src/invidious/yt_backend/connection_pool.cr
+++ b/src/invidious/yt_backend/connection_pool.cr
@@ -73,7 +73,7 @@ def make_client(url : URI, region = nil, force_resolve : Bool = false, force_you
end
def make_client(url : URI, region = nil, force_resolve : Bool = false, &)
- client = make_client(url, region, force_resolve)
+ client = make_client(url, region, force_resolve: force_resolve)
begin
yield client
ensure