Invidious is an alternative front-end to YouTube
Fix #resolve_url by adding ClientConfig argument
syeopitee9add69e267c
diff --git a/src/invidious/helpers/youtube_api.cr b/src/invidious/helpers/youtube_api.crindex a5b4b2d5..4ed707f6 100644--- a/src/invidious/helpers/youtube_api.cr+++ b/src/invidious/helpers/youtube_api.cr@@ -325,11 +325,14 @@ module YoutubeAPIend####################################################################- # resolve_url(url)+ # resolve_url(url, client_config?)## Requests the youtubei/v1/navigation/resolve_url endpoint with the# required headers and POST data in order to get a JSON reply.#+ # An optional ClientConfig parameter can be passed, too (see+ # `struct ClientConfig` above for more details).+ ## Output:## ```@@ -349,13 +352,13 @@ module YoutubeAPI# channel_b = YoutubeAPI.resolve_url("https://youtube.com/c/invalid")# ```#- def resolve_url(url : String)+ def resolve_url(url : String, client_config : ClientConfig | Nil = nil)data = {"context" => self.make_context(nil),"url" => url,}- return self._post_json("/youtubei/v1/navigation/resolve_url", data)+ return self._post_json("/youtubei/v1/navigation/resolve_url", data, client_config)end####################################################################