fix: 유튜브 채널 배너 이미지 고해상도로 변경
- bannerUrl에 =w2560 파라미터 추가하여 2560px 너비로 요청 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
cb184e4fa5
commit
f01b2b8054
1 changed files with 5 additions and 1 deletions
|
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue