Dump ncm files to mp3 or flac files.
Project description
ncmdump-py
A simple package used to dump ncm files to mp3 or flac files, it can:
- Decrypt and dump
.ncm
files. - Auto add album and cover info into
.mp3
or.flac
files. - Auto try download cover image when there is no cover data in
.ncm
files.
Install
pip install ncmdump-py
Usage
Command-line tool
python -m ncmdump [-h] [--in-folder IN_FOLDER] [--out-folder OUT_FOLDER] [--dump-metadata] [--dump-cover] [files ...]
usage: ncmdump [-h] [--in-folder IN_FOLDER] [--out-folder OUT_FOLDER] [--dump-metadata] [--dump-cover] [files ...]
Dump ncm files with progress bar and logging info, only process files with suffix '.ncm'
positional arguments:
files Files to dump, can follow multiple files.
optional arguments:
-h, --help show this help message and exit
--in-folder IN_FOLDER
Input folder of files to dump.
--out-folder OUT_FOLDER
Output folder of files dumped.
--dump-metadata Whether dump metadata.
--dump-cover Whether dump album cover.
Import in your code
from ncmdump import NeteaseCloudMusicFile
ncmfile = NeteaseCloudMusicFile("filename.ncm")
ncmfile.decrypt()
print(ncmfile.music_metadata) # show music metadata
ncmfile.dump_music("filename.mp3") # auto detect correct suffix
# Maybe you also need dump metadata or cover image
# ncmfile.dump_metadata("filename.json")
# ncmfile.dump_cover("filename.jpeg")
If you think this project is helpful to you, :star: it and let more people see!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ncmdump-py-1.1.4.tar.gz
(8.4 kB
view details)
Built Distribution
File details
Details for the file ncmdump-py-1.1.4.tar.gz
.
File metadata
- Download URL: ncmdump-py-1.1.4.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 028dfbe50d22018437fb6a16c671bec7c530999273ba0329c69620e41c01f41d |
|
MD5 | 051ab2cf3441f43fb71e08b9edfb8d54 |
|
BLAKE2b-256 | b7f8704c170c0a8ef7e1def6358855dac66e6ca3e48dff091a9a5b603c9ebe55 |
File details
Details for the file ncmdump_py-1.1.4-py3-none-any.whl
.
File metadata
- Download URL: ncmdump_py-1.1.4-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a69d769a2c3bcd80170fc0834357d22149af47ba259e463f89a63b50b593c5f0 |
|
MD5 | 7b736460b2f27734034369e1e8cb65e1 |
|
BLAKE2b-256 | fa5a091253f5346f26c8f67145ff172f919c801b65bd09570f67fed93a009c93 |