mirror of
https://github.com/AynaLivePlayer/miaosic.git
synced 2025-12-06 13:02:48 +08:00
22 lines
436 B
Go
22 lines
436 B
Go
package qq
|
|
|
|
import (
|
|
"github.com/AynaLivePlayer/miaosic"
|
|
"math/rand"
|
|
"time"
|
|
)
|
|
|
|
func init() {
|
|
rng = rand.New(rand.NewSource(time.Now().UnixNano()))
|
|
// user should manually register provider since there are two channel
|
|
//miaosic.RegisterProvider(NewQQMusicProvider("qq"))
|
|
}
|
|
|
|
func UseQQLogin() {
|
|
miaosic.RegisterProvider(NewQQMusicProvider("qq"))
|
|
}
|
|
|
|
func UseWechatLogin() {
|
|
miaosic.RegisterProvider(NewQQMusicProvider("wechat"))
|
|
}
|