Skip to content

Commit

Permalink
fix translated lyrics are not added properly when stopping ignoring e…
Browse files Browse the repository at this point in the history
…mpty lyrics #122
  • Loading branch information
jitwxs committed Sep 16, 2022
1 parent 867f0d7 commit 2f592e7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions MusicLyricApp/Utils/LyricUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ private static async Task<List<LyricLineVo>> FormatLyric(string originLrc, strin
{
var showLrcType = searchInfo.SettingBean.Param.ShowLrcType;
var searchSource = searchInfo.SettingBean.Param.SearchSource;
var ignoreEmptyLine = searchInfo.SettingBean.Param.IgnoreEmptyLyric;

var originLyrics = SplitLrc(originLrc, searchSource, ignoreEmptyLine);
var originLyrics = SplitLrc(originLrc, searchSource, searchInfo.SettingBean.Param.IgnoreEmptyLyric);

/*
* 1、原文歌词不存在
Expand All @@ -64,7 +63,7 @@ private static async Task<List<LyricLineVo>> FormatLyric(string originLrc, strin
// 译文处理,启用罗马音进行转换,否则使用原始的译文
var romajiConfig = searchInfo.SettingBean.Config.RomajiConfig;

var translateLyrics = SplitLrc(translateLrc, searchSource, ignoreEmptyLine);
var translateLyrics = SplitLrc(translateLrc, searchSource, true);

translateLyrics = DealTranslateLyric(originLyrics, translateLyrics, searchInfo.SettingBean);

Expand Down

0 comments on commit 2f592e7

Please sign in to comment.