mirror of
https://github.com/iv-org/invidious.git
synced 2025-07-20 12:28:29 +00:00
add documentation link
This commit is contained in:
parent
a11b59bcf7
commit
d2ff1c6d14
@ -638,9 +638,10 @@ module YoutubeAPI
|
|||||||
# Send the POST request
|
# Send the POST request
|
||||||
body = YT_POOL.client() do |client|
|
body = YT_POOL.client() do |client|
|
||||||
client.post(url, headers: headers, body: data.to_json) do |response|
|
client.post(url, headers: headers, body: data.to_json) do |response|
|
||||||
if response.status_code != 200
|
if response.status_code == 200
|
||||||
raise InfoException.new("Error: non 200 status code. Youtube API returned \
|
raise InfoException.new("Error: non 200 status code. Youtube API returned \
|
||||||
status code #{response.status_code}")
|
status code #{response.status_code}. See <a href=\"https://docs.invidious.io/youtube-errors-explained/\"> \
|
||||||
|
https://docs.invidious.io/youtube-errors-explained/</a> for troubleshooting.")
|
||||||
end
|
end
|
||||||
self._decompress(response.body_io, response.headers["Content-Encoding"]?)
|
self._decompress(response.body_io, response.headers["Content-Encoding"]?)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user