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("开始扫描文件夹,请稍等...");
var files = (await _fileScanner.ScanAsync(Source, DecryptoFactory.KnownExtensions))
var files = (await _fileScanner.ScanAsync(Source, DecryptoFactory.KnownExtensions.Select(x => $"*{x}")))
.SelectMany(f => f.FilePaths)
.ToList();

View File

@ -5,4 +5,7 @@ New Features:
Breaking Changes: None
Enhancement:
Fixed Bugs: None
- 基于 MusicDecrypto 提供歌曲解密功能,支持 40 种格式的文件,具体支持格式请自己尝试。
Fixed Bugs:
- None