Skip to main content

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

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)

Source distribution for dbpl 1.0.1
File Size Uploaded
dbpl-1.0.1.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dbpl 1.0.1
File Interpreter ABI Platform
dbpl-1.0.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page