mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2026-05-08 16:24:04 +08:00
add nosource
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user