Use YAML as configuration file; fix a download failure issue with QQ Music. (Reason: QQ Music API changed)

This commit is contained in:
real-zony
2022-03-18 19:51:08 +08:00
parent d1c50323b1
commit 2b0b14cd7a
30 changed files with 136 additions and 171 deletions

View File

@@ -82,7 +82,7 @@ namespace ZonyLrcTools.Cli.Commands.SubCommand
private async Task<List<string>> ScanMusicFilesAsync()
{
var files = (await _fileScanner.ScanAsync(Directory, _options.SupportFileExtensions.Split(';')))
var files = (await _fileScanner.ScanAsync(Directory, _options.SupportFileExtensions))
.SelectMany(t => t.FilePaths)
.ToList();
@@ -112,7 +112,7 @@ namespace ZonyLrcTools.Cli.Commands.SubCommand
private IEnumerable<ILyricDownloader> GetLyricDownloaderList()
{
var downloader = _options.LyricDownloaderOptions
var downloader = _options.Provider.Lyric.Plugin
.Where(op => op.Priority != -1)
.OrderBy(op => op.Priority)
.Join(_lyricDownloaderList,