Skip to main content

Download and display album art for mpd tracks.

Project description

🎵 pidi

PyPI MIT licensed Build Status Donate

pidi is a plugin-compatible fork of bum, a daemon that downloads album art for songs playing in mpd/mopidy and displays them in a little window.

pidi isn't as lightweight as bum, but supports displaying track information to a variety of output devices including a 240x240 ST7789 LCD. pidi is intended for use with the Raspberry Pi, but can be used on other systems with the appropriate display plugins.

pidi uses musicbrainz to source and download cover art, if an album is missing its cover art you can easily create an account and fill in the data yourself. pidi outputs a release-id which you can use to find the exact entry on musicbrainz.

Note: pidi is meant to be used with files that don't have embedded album art (eg: mopidy-spotify).

showcase

Dependencies

  • python 3.6+
  • python-mpd2
  • musicbrainzngs

Optional

pidi supports multiple display outputs, specified using --display {dummy,tk,mpv}, you must install the dependencies required for your chosen output:

  • python-mpv - for mpv output
  • python3-pil, python3-tk and python3-pil.imagetk plus fonts and font_connection from pypi - for tk/PIL output
  • st7789 - for ST7789 1.3" 240x240 LCD output

Installation

pip3 install --user pidi

Usage

usage: pidi [-h] [--update-interval "i"] [--size "px"]
                   [--cache_dir "/path/to/dir"] [--version] [--port PORT]
                   [--server SERVER] [--no_display] [--display {dummy,tk,mpv}]

pidi - Download and display album art for mpd tracks.

optional arguments:
  -h, --help            show this help message and exit
  --update-interval "i"
                        overlay update interval in seconds.
  --size "px"           what size to display the album art in.
  --cache_dir "/path/to/dir"
                        Where to store the downloaded cover art.
  --version             Print "pidi" version.
  --port PORT           Use a custom mpd port.
  --server SERVER       Use a remote server instead of localhost.
  --no_display          Only download album art, don't display.
  --display {dummy,tk,mpv}
                        Display class to use.

Donate

pidi is a fork of bum - https://github.com/dylanaraps/bum, which was originally written by @dylanaraps.

If you'd like to show him some support, you can donate here:

https://patreon.com/dyla

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

pidi-0.0.1.tar.gz (7.7 kB view details)

Uploaded Source

File details

Details for the file pidi-0.0.1.tar.gz.

File metadata

  • Download URL: pidi-0.0.1.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for pidi-0.0.1.tar.gz
Algorithm Hash digest
SHA256 dbdca1269c74ce8ab5c4816e8f83d0f45230e6038557d1b51146dbc35afd2cad
MD5 5cecb6222e26e2c59445dc4df38ea2d9
BLAKE2b-256 a03f3f3953db49281c036e4ac8cd6a101923ec2c2399a5280ff92288a3131441

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page