build: Removed the direct reference to MusicDecrypto.

Directly referencing the NuGet package.
This commit is contained in:
real-zony 2023-01-08 22:47:09 +08:00
parent 8d5a45c9ef
commit 3e957fdb25
3 changed files with 2 additions and 6 deletions

View File

@ -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))

View File

@ -11,6 +11,7 @@
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="7.0.0" />
<PackageReference Include="MusicDecrypto.Library" Version="2.2.0" />
<PackageReference Include="NetEscapades.Configuration.Yaml" Version="2.2.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
<PackageReference Include="TagLibSharp" Version="2.3.0" />
@ -20,8 +21,4 @@
<Compile Remove="Lyrics\Providers\Kugeci\KugeciDownloader.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\vendor\MusicDecrypto\MusicDecrypto.Library\MusicDecrypto.Library.csproj" />
</ItemGroup>
</Project>

@ -1 +0,0 @@
Subproject commit 2d3787fae6db1551934ee20bf9f6ead7d41ae5ae