Request minified JSON from innertube (#2974)

This commit is contained in:
Samantaz Fox 2022-03-16 09:07:30 +01:00 committed by GitHub
parent 5b82370bc3
commit ed265cfdcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -401,7 +401,7 @@ module YoutubeAPI
client_config ||= DEFAULT_CLIENT_CONFIG
# Query parameters
url = "#{endpoint}?key=#{client_config.api_key}"
url = "#{endpoint}?key=#{client_config.api_key}&prettyPrint=false"
headers = HTTP::Headers{
"Content-Type" => "application/json; charset=UTF-8",