feat: 中文曲名优先显示 TITLEZH,其次 TITLEJA;版本号改为 vLightNova 1.0.0
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
class ImportSongs{
|
||||
class ImportSongs{
|
||||
constructor(...args){
|
||||
this.init(...args)
|
||||
}
|
||||
@@ -322,6 +322,10 @@
|
||||
songTitle = songTitle.slice(0, uraPos)
|
||||
}
|
||||
}
|
||||
if(id === "cn" && !meta["titlecn"] && meta.titlezh){
|
||||
titleLang.cn = meta.titlezh
|
||||
titleLangAdded = true
|
||||
}
|
||||
if(meta["title" + id]){
|
||||
titleLang[id] = meta["title" + id]
|
||||
titleLangAdded = true
|
||||
@@ -329,6 +333,10 @@
|
||||
titleLang[id] = this.songTitle[songTitle][id] + ura
|
||||
titleLangAdded = true
|
||||
}
|
||||
if(id === "cn" && !meta["subtitlecn"] && meta.subtitlezh){
|
||||
subtitleLang.cn = meta.subtitlezh
|
||||
subtitleLangAdded = true
|
||||
}
|
||||
if(meta["subtitle" + id]){
|
||||
subtitleLang[id] = meta["subtitle" + id]
|
||||
subtitleLangAdded = true
|
||||
|
||||
@@ -3113,6 +3113,15 @@ class SongSelect{
|
||||
|
||||
getLocalTitle(title, titleLang){
|
||||
if(titleLang){
|
||||
if(strings.id === "cn"){
|
||||
if(titleLang.cn){
|
||||
return titleLang.cn
|
||||
}
|
||||
if(titleLang.ja){
|
||||
return titleLang.ja
|
||||
}
|
||||
return title
|
||||
}
|
||||
for(var id in titleLang){
|
||||
if(id === "en" && strings.preferEn && !(strings.id in titleLang) && titleLang.en || id === strings.id && titleLang[id]){
|
||||
return titleLang[id]
|
||||
|
||||
Reference in New Issue
Block a user