openlist增加路径元信息配置分类和自动刷新链接功能
This commit is contained in:
@@ -1233,6 +1233,12 @@ export async function GET(request: NextRequest) {
|
||||
|
||||
// 3. 从 metainfo 中获取元数据
|
||||
const { getTMDBImageUrl } = await import('@/lib/tmdb.search');
|
||||
const { resolvePathMeta } = await import('@/lib/openlist-path-meta');
|
||||
// folderName 为 metainfo 完整路径,PathMeta 最长前缀匹配
|
||||
const pathMetaResolved = resolvePathMeta(
|
||||
folderName,
|
||||
openListConfig.PathMeta
|
||||
);
|
||||
|
||||
const result = {
|
||||
source: 'openlist',
|
||||
@@ -1255,6 +1261,8 @@ export async function GET(request: NextRequest) {
|
||||
),
|
||||
episodes_titles: episodes.map((ep) => ep.title),
|
||||
proxyMode: false, // openlist 源不使用代理模式
|
||||
category: pathMetaResolved.category || undefined,
|
||||
refresh14m: pathMetaResolved.refresh14m,
|
||||
};
|
||||
|
||||
return NextResponse.json(result);
|
||||
|
||||
Reference in New Issue
Block a user