deadbeef-playlist
This is a Python library for reading and writing playlists in the "DBPL" binary format, created by my absolute favorite desktop audio player DeaDBeeF.
I created it to be able to edit paths to audio files in the playlist, although it's possible to change any tracks properties.
Example
Let's imagine you have a large .dbpl playlist with hundreds of items, and you want
to change tracks paths from /data/music to /Volumes/music. Write a script
named script.py:
from dbpl import Playlist
from argparse import ArgumentParser
if __name__ == '__main__':
parser = ArgumentParser()
parser.add_argument('--input', required=True, help='input file')
parser.add_argument('--output', required=True, help='output file')
args = parser.parse_args()
playlist = Playlist(args.input)
for t in playlist.tracks:
uri = t.get_uri()
uri = uri.replace('/data/music', '/Volumes/music')
t.set_uri(uri)
playlist.save(args.output)
Then use it:
python3 ./script.py --input old.dbpl --output new.dbpl
License
BSD-2c
Metadata
Release files for dbpl 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dbpl-1.0.1.tar.gz | 4.7 kB | Without provenance | Details for dbpl-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dbpl-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for dbpl-1.0.1-py3-none-any.whl |
Total release size: 9.8 kB
Release files / dbpl-1.0.1.tar.gz
| Download URL | dbpl-1.0.1.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c17cc701ffa0c3198eaf37c245c1ad3fe5e19419487c7804fc3846c19308ab6
|
|
BLAKE2b-256 checksum How to use checksums |
a77b6fa22f7d85ca9e8bb8037eca3d213fab4b5bea5af7243a030f01914c033b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
|
Release files / dbpl-1.0.1-py3-none-any.whl
| Download URL | dbpl-1.0.1-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
da37fe9690b16a141cace80570e285019807c1bd607ef5815a5a961bc63d82ef
|
|
BLAKE2b-256 checksum How to use checksums |
f5aef036559babf9b15541c9b6c9dd323325b1fa5e01f80c51fa800ff23db2bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
|
Security for dbpl 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.