emby test2

This commit is contained in:
mtvpls
2026-01-13 00:18:07 +08:00
parent 033eae152b
commit 7f42929ee4
3 changed files with 13 additions and 1 deletions

View File

@@ -3,11 +3,17 @@ import { NextResponse } from 'next/server';
import { embyManager } from '@/lib/emby-manager';
export const runtime = 'nodejs';
export const dynamic = 'force-dynamic'; // 禁用缓存
/**
* 获取所有启用的Emby源列表
*/
export async function GET() {
console.log('=================================');
console.log('[Emby Sources API] !!!!! 路由被调用了 !!!!!');
console.log('[Emby Sources API] 时间戳:', new Date().toISOString());
console.log('=================================');
try {
console.log('[Emby Sources API] 开始获取Emby源列表');
const sources = await embyManager.getEnabledSources();