From 14ef823a01df5652a589c88684526815941239d8 Mon Sep 17 00:00:00 2001 From: dmgnr Date: Wed, 30 Sep 2026 17:10:42 +0700 Subject: [PATCH] revert: hotfix: hide links to hacked channel --- app/(ui)/page.tsx | 21 ++++++++++----------- app/api/live/route.ts | 16 ++++++++-------- 2 files changed, 18 insertions(+), 19 deletions(-) diff --git a/app/(ui)/page.tsx b/app/(ui)/page.tsx index 1059a70..978c187 100755 --- a/app/(ui)/page.tsx +++ b/app/(ui)/page.tsx @@ -17,17 +17,16 @@ export default function Home() {
- {/* TEMPORARY: Hacked channel */} - {/* */} - Banner - {/* */} + + Banner +
diff --git a/app/api/live/route.ts b/app/api/live/route.ts index 536ef72..d61ffa5 100755 --- a/app/api/live/route.ts +++ b/app/api/live/route.ts @@ -5,14 +5,14 @@ import { youtubeCache } from "@/lib/adaptive-cache"; export type YoutubeLiveInfo = | { + url: string; + thumbnails: { url: string; - thumbnails: { - url: string; - width: number; - height: number; - }; - title: string; - } + width: number; + height: number; + }; + title: string; + } | "none"; type APISearchResource = { @@ -64,7 +64,7 @@ export async function GET(req: NextRequest) { const apiKey = process.env.YOUTUBE_API_KEY; // TEMPORARY: Hacked channel - if (!apiKey || !channelId && true) return NextResponse.json("none"); + if (!apiKey || !channelId) return NextResponse.json("none"); const response = await youtubeCache.fetch( `https://www.googleapis.com/youtube/v3/search?part=snippet&channelId=${channelId}&eventType=live&type=video&maxResults=1&key=${apiKey}`,