cnsilvan / UnblockNeteaseMusic

Revive unavailable songs for Netease Cloud Music (Golang)
GNU General Public License v3.0
528 stars 74 forks source link

goruntime问题 #44

Closed hehe413 closed 3 years ago

hehe413 commented 3 years ago

windows 下 通过参数 -o kuwo:kugou:migu 启动,发现每次只匹配其中一个平台的歌曲。查看源码后发现原因如下: for , p := range providers { go utils.PanicWrapper(func() { ch <- calculateSongInfo(p.ParseSong(key)) }) sum++ } 建议修改为 for , p := range providers { tmp_p := p go utils.PanicWrapper(func() { ch <- calculateSongInfo(tmp_p.ParseSong(key)) }) sum++ }

cnsilvan commented 3 years ago

感谢反馈,不然我一定发现不了 这个经典错误,因为我平时就一个音源。已修复