add kugou instr source

This commit is contained in:
aynakeya
2024-11-17 07:16:52 -08:00
parent 5afbe695f2
commit b178f729a2
10 changed files with 131 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ import (
"github.com/AynaLivePlayer/miaosic"
//_ "github.com/AynaLivePlayer/miaosic/providers/bilibili"
_ "github.com/AynaLivePlayer/miaosic/providers/bilivideo"
_ "github.com/AynaLivePlayer/miaosic/providers/kugou"
"github.com/AynaLivePlayer/miaosic/providers/kugou"
_ "github.com/AynaLivePlayer/miaosic/providers/kuwo"
"github.com/AynaLivePlayer/miaosic/providers/local"
_ "github.com/AynaLivePlayer/miaosic/providers/netease"
@@ -34,6 +34,7 @@ var sourceCfg = &_sourceConfig{
func Initialize() {
config.LoadConfig(sourceCfg)
miaosic.RegisterProvider(local.NewLocal(sourceCfg.LocalSourcePath))
kugou.UseInstrumental()
global.EventManager.CallA(
events.MediaProviderUpdate, events.MediaProviderUpdateEvent{