Invidious is an alternative front-end to YouTube
chore: removed unused `locale` argument in `#get_about_info` function (#5902)
Fijxu821365cf715f
diff --git a/src/invidious/channels/about.cr b/src/invidious/channels/about.crindex bb55147b..247f628a 100644--- a/src/invidious/channels/about.cr+++ b/src/invidious/channels/about.cr@@ -19,7 +19,7 @@ record AboutChannel,verified : Bool,is_age_gated : Bool-def get_about_info(ucid, locale) : AboutChannel+def get_about_info(ucid) : AboutChannelbegin# Fetch channel information from channel home pageinitdata = YoutubeAPI.browse(browse_id: ucid, params: "")diff --git a/src/invidious/routes/api/v1/channels.cr b/src/invidious/routes/api/v1/channels.crindex 0d597ede..b72aa6cf 100644--- a/src/invidious/routes/api/v1/channels.cr+++ b/src/invidious/routes/api/v1/channels.cr@@ -3,7 +3,7 @@ module Invidious::Routes::API::V1::Channels# This sets the `channel` variable, or handles Exceptions.private macro get_channelbegin- channel = get_about_info(ucid, locale)+ channel = get_about_info(ucid)rescue ex : ChannelRedirectenv.response.headers["Location"] = env.request.resource.gsub(ucid, ex.channel_id)return error_json(302, "Channel is unavailable", {"authorId" => ex.channel_id})diff --git a/src/invidious/routes/channels.cr b/src/invidious/routes/channels.crindex 0477802a..ff8b0f27 100644--- a/src/invidious/routes/channels.cr+++ b/src/invidious/routes/channels.cr@@ -433,7 +433,7 @@ module Invidious::Routes::Channelscontinuation = env.params.query["continuation"]?begin- channel = get_about_info(ucid, locale)+ channel = get_about_info(ucid)rescue ex : ChannelRedirectreturn env.redirect env.request.resource.gsub(ucid, ex.channel_id)rescue ex : NotFoundException