fix: 유튜브 채널 배너 이미지 고해상도로 변경

- bannerUrl에 =w2560 파라미터 추가하여 2560px 너비로 요청

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
caadiq 2026-02-03 18:22:45 +09:00
parent cb184e4fa5
commit f01b2b8054

View file

@ -62,12 +62,16 @@ export async function getChannelInfo(channelId) {
const channel = data.items[0];
const { snippet, brandingSettings } = channel;
// 배너 URL에 고해상도 파라미터 추가
const bannerBase = brandingSettings?.image?.bannerExternalUrl;
const bannerUrl = bannerBase ? `${bannerBase}=w2560` : null;
return {
channelId,
title: snippet.title,
description: snippet.description,
thumbnailUrl: snippet.thumbnails?.high?.url || snippet.thumbnails?.default?.url,
bannerUrl: brandingSettings?.image?.bannerExternalUrl || null,
bannerUrl,
};
}