feat: Added KuWo(酷我) Music lyrics source (incomplete).

This commit is contained in:
real-zony
2022-10-26 17:05:44 +08:00
parent 6b72f919b8
commit b7b1f36bf5
15 changed files with 219 additions and 13 deletions

View File

@@ -0,0 +1,27 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Shouldly;
using Xunit;
using ZonyLrcTools.Common.Lyrics;
namespace ZonyLrcTools.Tests.Infrastructure.Lyrics;
public class KuWoLyricsProviderTests : TestBase
{
private readonly ILyricsProvider _kuwoLyricsProvider;
public KuWoLyricsProviderTests()
{
_kuwoLyricsProvider = GetService<IEnumerable<ILyricsProvider>>()
.FirstOrDefault(t => t.DownloaderName == InternalLyricsProviderNames.KuWo);
}
[Fact]
public async Task DownloadAsync_Test()
{
var lyric = await _kuwoLyricsProvider.DownloadAsync("告白气球", "周杰伦");
lyric.ShouldNotBeNull();
lyric.IsPruneMusic.ShouldBeFalse();
}
}