mirror of
https://github.com/real-zony/ZonyLrcToolsX.git
synced 2025-09-07 22:26:52 +00:00
Use YAML as configuration file; fix a download failure issue with QQ Music. (Reason: QQ Music API changed)
This commit is contained in:
@@ -9,7 +9,7 @@ namespace ZonyLrcTools.Tests.Infrastructure.Lyric
|
||||
[Fact]
|
||||
public void LyricCollectionLineBreak_Test()
|
||||
{
|
||||
var lyricObject = new LyricItemCollection(new LyricItemCollectionOption
|
||||
var lyricObject = new LyricItemCollection(new LyricConfigOption
|
||||
{
|
||||
IsOneLine = false,
|
||||
LineBreak = LineBreakType.MacOs
|
||||
@@ -18,7 +18,7 @@ namespace ZonyLrcTools.Tests.Infrastructure.Lyric
|
||||
new(0, 20, "你好世界!"),
|
||||
new(0, 22, "Hello World!")
|
||||
};
|
||||
|
||||
|
||||
lyricObject.ToString().ShouldContain(LineBreakType.MacOs);
|
||||
}
|
||||
}
|
||||
|
@@ -21,7 +21,7 @@ namespace ZonyLrcTools.Tests.Infrastructure.Lyric
|
||||
[Fact]
|
||||
public async Task DownloadAsync_Test()
|
||||
{
|
||||
var lyric = await _lyricDownloader.DownloadAsync("Hollow", "Janet Leon");
|
||||
var lyric = await _lyricDownloader.DownloadAsync("东风破", "胡歌");
|
||||
lyric.ShouldNotBeNull();
|
||||
lyric.IsPruneMusic.ShouldBe(false);
|
||||
}
|
||||
|
Reference in New Issue
Block a user