From 3e957fdb2579bff961f15f60605c8dd46c6ebdd8 Mon Sep 17 00:00:00 2001 From: real-zony Date: Sun, 8 Jan 2023 22:47:09 +0800 Subject: [PATCH] build: Removed the direct reference to MusicDecrypto. Directly referencing the NuGet package. --- .../MusicDecryption/DefaultMusicDecryptor.cs | 2 +- src/ZonyLrcTools.Common/ZonyLrcTools.Common.csproj | 5 +---- vendor/MusicDecrypto | 1 - 3 files changed, 2 insertions(+), 6 deletions(-) delete mode 160000 vendor/MusicDecrypto diff --git a/src/ZonyLrcTools.Common/MusicDecryption/DefaultMusicDecryptor.cs b/src/ZonyLrcTools.Common/MusicDecryption/DefaultMusicDecryptor.cs index 1e44629..eec0716 100644 --- a/src/ZonyLrcTools.Common/MusicDecryption/DefaultMusicDecryptor.cs +++ b/src/ZonyLrcTools.Common/MusicDecryption/DefaultMusicDecryptor.cs @@ -24,7 +24,7 @@ namespace ZonyLrcTools.Common.MusicDecryption await file.CopyToAsync(buffer); using var decrypto = DecryptoFactory.Create(buffer, Path.GetFileName(filePath), message => { }); - var outFileName = decrypto.Decrypt().NewName; + var outFileName = (await decrypto.DecryptAsync()).NewName; var outFilePath = Path.Combine(Path.GetDirectoryName(filePath)!, outFileName); if (!File.Exists(outFilePath)) diff --git a/src/ZonyLrcTools.Common/ZonyLrcTools.Common.csproj b/src/ZonyLrcTools.Common/ZonyLrcTools.Common.csproj index 49b44ca..a01f686 100644 --- a/src/ZonyLrcTools.Common/ZonyLrcTools.Common.csproj +++ b/src/ZonyLrcTools.Common/ZonyLrcTools.Common.csproj @@ -11,6 +11,7 @@ + @@ -20,8 +21,4 @@ - - - - diff --git a/vendor/MusicDecrypto b/vendor/MusicDecrypto deleted file mode 160000 index 2d3787f..0000000 --- a/vendor/MusicDecrypto +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 2d3787fae6db1551934ee20bf9f6ead7d41ae5ae