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.3.tar.gz
(7.8 kB
view hashes)
Built Distribution
Close
Hashes for ncmdump_py-1.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a6f413c6be39d5c5b6266f4209617c880e041e1311853b35891991f234d632e |
|
MD5 | aa1279fdd2c4f22afe857d05397ec3f8 |
|
BLAKE2b-256 | ca6d7936e6d2252301c06089558a5f01d6741c1e34b760fd5d0ee62591dbc5c8 |