Merge e12bac5c4cb797f61f2fd7d130eabeaa4496e4b8 into d10f2a48021f1768f2d6ff3bd1b9f3de4e0b2d22

This commit is contained in:
Fijxu 2026-08-15 19:54:31 +04:00 committed by GitHub
commit 50949676e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ record AboutChannel,
verified : Bool,
is_age_gated : Bool
def get_about_info(ucid, locale) : AboutChannel
def get_about_info(ucid) : AboutChannel
begin
# Fetch channel information from channel home page
initdata = YoutubeAPI.browse(browse_id: ucid, params: "")

View File

@ -3,7 +3,7 @@ module Invidious::Routes::API::V1::Channels
# This sets the `channel` variable, or handles Exceptions.
private macro get_channel
begin
channel = get_about_info(ucid, locale)
channel = get_about_info(ucid)
rescue ex : ChannelRedirect
env.response.headers["Location"] = env.request.resource.gsub(ucid, ex.channel_id)
return error_json(302, "Channel is unavailable", {"authorId" => ex.channel_id})

View File

@ -433,7 +433,7 @@ module Invidious::Routes::Channels
continuation = env.params.query["continuation"]?
begin
channel = get_about_info(ucid, locale)
channel = get_about_info(ucid)
rescue ex : ChannelRedirect
return env.redirect env.request.resource.gsub(ucid, ex.channel_id)
rescue ex : NotFoundException