Extract BandCamp .zip album folders to their appropriate place
Project description
Band Camp Album Extractor
This python script extracts all of the songs for a bandcamp album download.
Install
(preferred) from pip
pip install bandcamp_extract
From github repo
To install this package simply run
pip install .
in the root of this package
Usage
After installation the extrator's binary is called bcextr
it can be used like
so
bcextr ~/Downloads/album.zip --pattern ~/Music/{artist}/{album}/{title}
Default pattern if not provided is: ./{artist}/{album}/{title}
The pattern substitution will substitute any parameter it gets in tinytag
The file extension will also be added to the end of the pattern
when moving
the song to it's destination
tag.album # album as string
tag.albumartist # album artist as string
tag.artist # artist name as string
tag.audio_offset # number of bytes before audio data begins
tag.bitrate # bitrate in kBits/s
tag.comment # file comment as string
tag.composer # composer as string
tag.disc # disc number
tag.disc_total # the total number of discs
tag.duration # duration of the song in seconds
tag.filesize # file size in bytes
tag.genre # genre as string
tag.samplerate # samples per second
tag.title # title of the song
tag.track # track number as string
tag.track_total # total number of tracks as string
tag.year # year or data as string
It is important to note that any files that are not music in the zip are not moved to the destination folder.
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
Built Distribution
File details
Details for the file bandcamp_extract-0.1.4.tar.gz
.
File metadata
- Download URL: bandcamp_extract-0.1.4.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf30a4b988e501d267ed58a7380fdc8b554270cfe1fc4200c4a9294b03d85f43 |
|
MD5 | e6e66eb4ebc7d3813ac7655e7f21a392 |
|
BLAKE2b-256 | 71c479dd204f60686ea477ad369972309399101ec8c0184e9aec4034cba01c95 |
File details
Details for the file bandcamp_extract-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: bandcamp_extract-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 289a8d69a8912e3d9bb2cde59f01ed0d9033bcbcbb205474e87eb7559728756c |
|
MD5 | 49dc968c0d206bd3979faa288ee569da |
|
BLAKE2b-256 | ab2cc8c1e5bee203ae1228d959234997edc16ce4761b1e25407d432cc73ca763 |