From 2f2e67f3e644379606c4aeee9a0819859c51b4b6 Mon Sep 17 00:00:00 2001 From: real-zony Date: Tue, 13 Dec 2022 22:33:34 +0800 Subject: [PATCH] fix: Fixed the issue of incorrect file extension preventing file search. --- .../Commands/SubCommand/UtilityCommand.cs | 2 +- versions/release.bak.md | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/ZonyLrcTools.Cli/Commands/SubCommand/UtilityCommand.cs b/src/ZonyLrcTools.Cli/Commands/SubCommand/UtilityCommand.cs index 250dc32..47a0156 100644 --- a/src/ZonyLrcTools.Cli/Commands/SubCommand/UtilityCommand.cs +++ b/src/ZonyLrcTools.Cli/Commands/SubCommand/UtilityCommand.cs @@ -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(); diff --git a/versions/release.bak.md b/versions/release.bak.md index 8a220d6..c57de16 100644 --- a/versions/release.bak.md +++ b/versions/release.bak.md @@ -3,6 +3,9 @@ New Features: - CLI 提供了一个更新检查功能,在程序启动的时候会检测最新的版本。 - 支持从酷我音乐搜索歌词。 -Breaking Changes: None -Enhancement: -Fixed Bugs: None \ No newline at end of file +Breaking Changes: None +Enhancement: +- 基于 MusicDecrypto 提供歌曲解密功能,支持 40 种格式的文件,具体支持格式请自己尝试。 + +Fixed Bugs: +- None \ No newline at end of file