We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52f7abe commit 1f4786cCopy full SHA for 1f4786c
1 file changed
src/apps/LyricFA/util/MatchLyric.cpp
@@ -73,6 +73,8 @@ namespace LyricFA {
73
textList.emplace_back(item.hanzi.c_str());
74
pinyinList.emplace_back(item.pinyin.c_str());
75
}
76
+ if (textList.empty() || pinyinList.empty())
77
+ continue;
78
m_lyricDict[lyricName] = lyricInfo{textList, pinyinList};
79
80
@@ -162,7 +164,7 @@ namespace LyricFA {
162
164
163
165
166
} else {
- msg = "filename: Miss lyric " + lyricName + ".txt";
167
+ msg = "filename: Miss lyric " + lyricName + ".txt or lyric file is empty";
168
return false;
169
170
return true;
0 commit comments