fix: Fixed an issue with netease music downloader.

This commit is contained in:
real-zony 2022-04-25 23:24:13 +08:00
parent c655ac4cbb
commit 3b0f9fa89b

View File

@ -59,7 +59,7 @@ namespace ZonyLrcTools.Cli.Infrastructure.Lyric.NetEase
await ValueTask.CompletedTask;
var json = JsonConvert.DeserializeObject<GetLyricResponse>(Encoding.UTF8.GetString(data));
if (json?.OriginalLyric == null)
if (json?.OriginalLyric == null || string.IsNullOrEmpty(json.OriginalLyric.Text))
{
return new LyricItemCollection(null);
}