From 04d56420d1e0aecf85dd7d4f51d3339b88b61caa Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Thu, 28 Nov 2019 08:20:44 -0600 Subject: [PATCH] Run 'crystal tool format' --- src/invidious.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious.cr b/src/invidious.cr index 59590f22..6499d569 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -4527,7 +4527,7 @@ get "/api/v1/search/suggestions" do |env| client.family = CONFIG.force_resolve || Socket::Family::INET client.family = Socket::Family::INET if client.family == Socket::Family::UNSPEC response = client.get("/complete/search?hl=en&gl=#{region}&client=youtube&ds=yt&q=#{URI.encode_www_form(query)}&callback=suggestCallback").body - + body = response[35..-2] body = JSON.parse(body).as_a suggestions = body[1].as_a[0..-2]