mirror of
https://github.com/real-zony/ZonyLrcToolsX.git
synced 2025-08-31 17:56:53 +00:00
feat: Added KuWo(酷我) Music lyrics source (incomplete).
This commit is contained in:
@@ -5,13 +5,13 @@ using Shouldly;
|
||||
using Xunit;
|
||||
using ZonyLrcTools.Common.Lyrics;
|
||||
|
||||
namespace ZonyLrcTools.Tests.Infrastructure.Lyric
|
||||
namespace ZonyLrcTools.Tests.Infrastructure.Lyrics
|
||||
{
|
||||
public class KuGouLyricDownloaderTests : TestBase
|
||||
public class KuGouLyricProviderTests : TestBase
|
||||
{
|
||||
private readonly ILyricsProvider _lyricsProvider;
|
||||
|
||||
public KuGouLyricDownloaderTests()
|
||||
public KuGouLyricProviderTests()
|
||||
{
|
||||
_lyricsProvider = GetService<IEnumerable<ILyricsProvider>>()
|
||||
.FirstOrDefault(t => t.DownloaderName == InternalLyricsProviderNames.KuGou);
|
@@ -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();
|
||||
}
|
||||
}
|
@@ -3,7 +3,7 @@ using Xunit;
|
||||
using ZonyLrcTools.Common.Configuration;
|
||||
using ZonyLrcTools.Common.Lyrics;
|
||||
|
||||
namespace ZonyLrcTools.Tests.Infrastructure.Lyric
|
||||
namespace ZonyLrcTools.Tests.Infrastructure.Lyrics
|
||||
{
|
||||
public class LyricCollectionTests : TestBase
|
||||
{
|
@@ -8,13 +8,13 @@ using Xunit;
|
||||
using ZonyLrcTools.Common.Configuration;
|
||||
using ZonyLrcTools.Common.Lyrics;
|
||||
|
||||
namespace ZonyLrcTools.Tests.Infrastructure.Lyric
|
||||
namespace ZonyLrcTools.Tests.Infrastructure.Lyrics
|
||||
{
|
||||
public class NetEaseLyricDownloaderTests : TestBase
|
||||
public class NetEaseLyricsProviderTests : TestBase
|
||||
{
|
||||
private readonly ILyricsProvider _lyricsProvider;
|
||||
|
||||
public NetEaseLyricDownloaderTests()
|
||||
public NetEaseLyricsProviderTests()
|
||||
{
|
||||
_lyricsProvider = GetService<IEnumerable<ILyricsProvider>>()
|
||||
.FirstOrDefault(t => t.DownloaderName == InternalLyricsProviderNames.NetEase);
|
@@ -5,13 +5,13 @@ using Shouldly;
|
||||
using Xunit;
|
||||
using ZonyLrcTools.Common.Lyrics;
|
||||
|
||||
namespace ZonyLrcTools.Tests.Infrastructure.Lyric
|
||||
namespace ZonyLrcTools.Tests.Infrastructure.Lyrics
|
||||
{
|
||||
public class QQLyricDownloaderTests : TestBase
|
||||
public class QQLyricsProviderTests : TestBase
|
||||
{
|
||||
private readonly ILyricsProvider _lyricsProvider;
|
||||
|
||||
public QQLyricDownloaderTests()
|
||||
public QQLyricsProviderTests()
|
||||
{
|
||||
_lyricsProvider = GetService<IEnumerable<ILyricsProvider>>()
|
||||
.FirstOrDefault(t => t.DownloaderName == InternalLyricsProviderNames.QQ);
|
Reference in New Issue
Block a user