diff --git a/src/ZonyLrcTools.Cli/Infrastructure/Lyric/NetEase/NetEaseLyricDownloader.cs b/src/ZonyLrcTools.Cli/Infrastructure/Lyric/NetEase/NetEaseLyricDownloader.cs index 3ffe104..1bc167c 100644 --- a/src/ZonyLrcTools.Cli/Infrastructure/Lyric/NetEase/NetEaseLyricDownloader.cs +++ b/src/ZonyLrcTools.Cli/Infrastructure/Lyric/NetEase/NetEaseLyricDownloader.cs @@ -64,9 +64,14 @@ namespace ZonyLrcTools.Cli.Infrastructure.Lyric.NetEase return new LyricItemCollection(LyricItemCollectionOption.NullInstance); } + if (json.OriginalLyric.Text.Contains("纯音乐,请欣赏")) + { + return new LyricItemCollection(null); + } + return _lyricItemCollectionFactory.Build( json.OriginalLyric.Text, - json.TranslationLyric.Text); + json.TranslationLyric?.Text); } protected virtual void ValidateSongSearchResponse(SongSearchResponse response, LyricDownloaderArgs args) diff --git a/tests/ZonyLrcTools.Tests/Infrastructure/Lyric/NetEaseLyricDownloaderTests.cs b/tests/ZonyLrcTools.Tests/Infrastructure/Lyric/NetEaseLyricDownloaderTests.cs index 26957ff..844a250 100644 --- a/tests/ZonyLrcTools.Tests/Infrastructure/Lyric/NetEaseLyricDownloaderTests.cs +++ b/tests/ZonyLrcTools.Tests/Infrastructure/Lyric/NetEaseLyricDownloaderTests.cs @@ -34,5 +34,13 @@ namespace ZonyLrcTools.Tests.Infrastructure.Lyric lyric.IsPruneMusic.ShouldBe(false); lyric.ToString().Contains("惑う心繋ぎ止める").ShouldBeTrue(); } + + [Fact] + public async Task DownloadAsync_Issue_82_Test() + { + var lyric = await _lyricDownloader.DownloadAsync("シンデレラ (Giga First Night Remix)", "DECO 27 ギガP"); + lyric.ShouldNotBeNull(); + lyric.IsPruneMusic.ShouldBe(true); + } } } \ No newline at end of file