feat: 屏蔽词功能同标签读取器集成。

This commit is contained in:
real-zony
2021-06-04 23:16:41 +08:00
parent e917f6ee80
commit 625f24ccbf
3 changed files with 23 additions and 3 deletions

View File

@@ -87,10 +87,12 @@ namespace ZonyLrcTools.Cli.Commands
var buffer = new Memory<byte>(new byte[2048]);
while (await file.ReadAsync(buffer) > 0)
{
// TODO: Large Object Issue!!!!!
await memoryStream.WriteAsync(buffer);
}
}
// TODO: Large Object Issue!!!!!
var result = await _musicDecryptor.ConvertMusic(memoryStream.ToArray());
var newFileName = Path.Combine(Path.GetDirectoryName(filePath),
$"{Path.GetFileNameWithoutExtension(filePath)}.{((JObject) result.ExtensionObjects["JSON"]).SelectToken("$.format").Value<string>()}");