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.5.tar.gz
(7.8 kB
view details)
Built Distribution
File details
Details for the file ncmdump_py-1.1.5.tar.gz
.
File metadata
- Download URL: ncmdump_py-1.1.5.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
799012bd7622089c3e3bc34a120e8580ad6cb5ff90d89515114ebf679fe09be2
|
|
MD5 |
ca57b87087d5e47f6bb338d885ceba66
|
|
BLAKE2b-256 |
84e83c2bb38e867e46274255abb5d228e408868da16edaa8fc2866f5bd4129ab
|
File details
Details for the file ncmdump_py-1.1.5-py3-none-any.whl
.
File metadata
- Download URL: ncmdump_py-1.1.5-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
d20922ea2e0e3949e5d21840bcbdfddf4cdedf295fe6fedbc03b5ba377f939c6
|
|
MD5 |
22553c2e8f686ddad8a60f5e1d9d2a4a
|
|
BLAKE2b-256 |
ab7c29a77de9a143476477a5c52e09476bc1295c498f29e79c80f230b4d45f5a
|