音乐openlist缓存

This commit is contained in:
mtvpls
2026-02-02 20:53:28 +08:00
parent a447a41920
commit 525c6f77aa
7 changed files with 700 additions and 119 deletions
+14
View File
@@ -542,6 +542,20 @@ export function configSelfCheck(adminConfig: AdminConfig): AdminConfig {
}
}
// 确保音乐配置存在
if (!adminConfig.MusicConfig) {
adminConfig.MusicConfig = {
TuneHubEnabled: false,
TuneHubBaseUrl: 'https://tunehub.sayqz.com/api',
TuneHubApiKey: '',
OpenListCacheEnabled: false,
OpenListCacheURL: '',
OpenListCacheUsername: '',
OpenListCachePassword: '',
OpenListCachePath: '/music-cache',
};
}
return adminConfig;
}