fix: Fixed the issue of incorrect file extension preventing file search.

This commit is contained in:
real-zony 2022-12-13 22:33:34 +08:00
parent a46abba2f9
commit 2f2e67f3e6
2 changed files with 7 additions and 4 deletions

View File

@ -41,7 +41,7 @@ namespace ZonyLrcTools.Cli.Commands.SubCommand
{ {
_logger.LogInformation("开始扫描文件夹,请稍等..."); _logger.LogInformation("开始扫描文件夹,请稍等...");
var files = (await _fileScanner.ScanAsync(Source, DecryptoFactory.KnownExtensions)) var files = (await _fileScanner.ScanAsync(Source, DecryptoFactory.KnownExtensions.Select(x => $"*{x}")))
.SelectMany(f => f.FilePaths) .SelectMany(f => f.FilePaths)
.ToList(); .ToList();

View File

@ -3,6 +3,9 @@ New Features:
- CLI 提供了一个更新检查功能,在程序启动的时候会检测最新的版本。 - CLI 提供了一个更新检查功能,在程序启动的时候会检测最新的版本。
- 支持从酷我音乐搜索歌词。 - 支持从酷我音乐搜索歌词。
Breaking Changes: None Breaking Changes: None
Enhancement: Enhancement:
Fixed Bugs: None - 基于 MusicDecrypto 提供歌曲解密功能,支持 40 种格式的文件,具体支持格式请自己尝试。
Fixed Bugs:
- None