mirror of
https://github.com/AynaLivePlayer/miaosic.git
synced 2025-12-06 13:02:48 +08:00
make lyric lang using iso 639-3 string
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
"github.com/AynaLivePlayer/miaosic"
|
||||
"github.com/AynaLivePlayer/miaosic/providers"
|
||||
"github.com/AynaLivePlayer/miaosic/utils"
|
||||
"github.com/aynakeya/deepcolor"
|
||||
"github.com/aynakeya/deepcolor/dphttp"
|
||||
"github.com/spf13/cast"
|
||||
@@ -122,7 +123,7 @@ func NewKuwo() *Kuwo {
|
||||
if len(lrcs) == 0 {
|
||||
return miaosic.ErrorExternalApi
|
||||
}
|
||||
*lyrics = []miaosic.Lyrics{miaosic.ParseLyrics("default", strings.Join(lrcs, "\n"))}
|
||||
*lyrics = []miaosic.Lyrics{utils.ParseLyricWithLangDetection(strings.Join(lrcs, "\n"))}
|
||||
return nil
|
||||
})
|
||||
kw.SearchApi = deepcolor.CreateApiResultFunc(
|
||||
|
||||
Reference in New Issue
Block a user