refactor: Refactored lyrics download logic and file scanning logic.

This commit is contained in:
real-zony
2022-10-23 19:28:57 +08:00
parent f9570508c2
commit 64d26cbc4c
8 changed files with 114 additions and 63 deletions

View File

@@ -0,0 +1,12 @@
namespace ZonyLrcTools.Common;
public interface IMusicInfoLoader
{
Task<List<MusicInfo?>> LoadAsync(string dirPath,
int parallelCount = 2,
CancellationToken cancellationToken = default);
Task<List<MusicInfo?>> LoadAsync(IReadOnlyCollection<string> filePaths,
int parallelCount = 2,
CancellationToken cancellationToken = default);
}