动漫磁力搜索增加nyaa;动漫磁力搜索前可选站点

This commit is contained in:
mtvpls
2026-06-20 12:43:16 +08:00
parent 20c073430b
commit ec71a252c9
12 changed files with 364 additions and 46 deletions
+5
View File
@@ -313,6 +313,7 @@ async function getInitConfig(
MagnetMikanReverseProxy: '',
MagnetDmhyReverseProxy: '',
MagnetAcgripReverseProxy: '',
MagnetNyaaReverseProxy: '',
// 评论功能开关
EnableComments: false,
EnableRegistration: false,
@@ -509,6 +510,7 @@ export function configSelfCheck(adminConfig: AdminConfig): AdminConfig {
MagnetMikanReverseProxy: '',
MagnetDmhyReverseProxy: '',
MagnetAcgripReverseProxy: '',
MagnetNyaaReverseProxy: '',
EnableComments: false,
EnableRegistration: false,
RequireRegistrationInviteCode: false,
@@ -579,6 +581,9 @@ export function configSelfCheck(adminConfig: AdminConfig): AdminConfig {
if (adminConfig.SiteConfig.MagnetAcgripReverseProxy === undefined) {
adminConfig.SiteConfig.MagnetAcgripReverseProxy = '';
}
if (adminConfig.SiteConfig.MagnetNyaaReverseProxy === undefined) {
adminConfig.SiteConfig.MagnetNyaaReverseProxy = '';
}
if (!adminConfig.UserConfig) {
adminConfig.UserConfig = { Users: [] };
}