NCMDecrypter 1.0.0
dotnet add package NCMDecrypter --version 1.0.0
NuGet\Install-Package NCMDecrypter -Version 1.0.0
<PackageReference Include="NCMDecrypter" Version="1.0.0" />
paket add NCMDecrypter --version 1.0.0
#r "nuget: NCMDecrypter, 1.0.0"
// Install NCMDecrypter as a Cake Addin #addin nuget:?package=NCMDecrypter&version=1.0.0 // Install NCMDecrypter as a Cake Tool #tool nuget:?package=NCMDecrypter&version=1.0.0
Netease Copyright Music Decrypter.
This is a package taht support convert Netease Copyright Music format to the flac or mp3 format which is friendly to your media player. It also read the metadata from the source file and fix it, using taglib.
todos
- Lyrics fix
- Completely async
- more options
Usage
First, you should create a Decrypter using a filae path or IEnumerable<byte>
or a MemoryStream
.
public Decrypter(string filePath)
public Decrypter(IEnumerable<byte> data)
public Decrypter(MemoryStream ms)
So you can create like followings
using Network11.NCMDecrypter;
var decrypter = new Decrypter("PATH/TO/YOUR/NCM/SOURCE/FILE");
then, create a option class
DecryptParam param = new DecryptParam() { OutputName=Path.GetFileNameWithoutExtension(path),OutputPath=Path.GetDirectoryName(path) };
OptputName can be a file name with extension or just a name without extension. Anyway, we will delete the extensions and add the proper one. The OutputPath must be a valid directory.
Finally, just call the execute function
await decrypter.Execute(param);
Of course you can use Task to run more than one process at one time. It will be helpful when you are dealing with many files but can also be challenging to your RAM 😃
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- TagLibSharp (>= 2.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 80 | 12/14/2024 |
Only for study, not for business
仅供学习,请勿用于商业用途