add nosource

This commit is contained in:
aynakeya
2025-07-31 00:32:22 +08:00
parent 7e680bc6bf
commit 466e4a761e
12 changed files with 172 additions and 31 deletions

View File

@@ -1,3 +1,5 @@
//go:build !nosource
package source
import (
@@ -34,9 +36,6 @@ var sourceCfg = &_sourceConfig{
func Initialize() {
config.LoadConfig(sourceCfg)
kugou.UseInstrumental()
if config.General.DistributionChannel != "github" {
miaosic.UnregisterAllProvider()
}
miaosic.RegisterProvider(local.NewLocal(sourceCfg.LocalSourcePath))
global.EventManager.CallA(