增加视频特殊源配置功能

This commit is contained in:
mtvpls
2026-06-09 15:25:22 +08:00
parent 3f9206e754
commit 65d89be93a
18 changed files with 454 additions and 26 deletions
+2 -1
View File
@@ -25,6 +25,7 @@ export async function GET(request: NextRequest) {
const { searchParams } = new URL(request.url);
const query = searchParams.get('q');
const includeSpecialSources = searchParams.get('special') === '1';
if (!query) {
const cacheTime = await getCacheTime();
@@ -42,7 +43,7 @@ export async function GET(request: NextRequest) {
}
const config = await getConfig();
const apiSites = await getAvailableApiSites(authInfo.username);
const apiSites = await getAvailableApiSites(authInfo.username, includeSpecialSources);
const [canAccessOpenList, canAccessEmby] = await Promise.all([
hasFeaturePermission(authInfo.username, 'private_library'),
hasFeaturePermission(authInfo.username, 'emby'),