增加视频特殊源配置功能
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user