# 🎵 bum
[](https://pypi.python.org/pypi/bum/) [](./LICENSE.md) [](https://travis-ci.org/dylanaraps/bum)
`bum` is a daemon that downloads album art for songs playing in `mpd` and displays them in a little window. `bum` doesn't loop on a timer, instead you can send it `SIGUSR1` to make it wake up and download album art for the current playing track. This makes `bum` lightweight and makes it idle at `~0%` CPU usage.
`bum` uses [musicbrainz](https://musicbrainz.org/) to source and download cover art, if an album is missing it's cover art you can easily create an account and fill in the data yourself. `bum` outputs a `release-id` which you can use to find the exact entry on musicbrainz.
Note: `bum` is meant to be used with files that don't have embedded album art (`mopidy-spotify`).

## Dependencies
- `python 3.6+`
- `python-mpv`
- `musicbrainzngs`
- `mpc`
## Installation
```py
pip install bum
```
## Usage
```sh
usage: bum [-h] [--size "px"] [--cache_dir "/path/to/dir"] [--version]
bum - Download and display album art for mpd tracks.
optional arguments:
-h, --help show this help message and exit
--size "px" what size to display the album art in.
--cache_dir "/path/to/dir"
Where to store the downloaded cover art.
--version Print "bum" version.
```
## Customization
### ncmpcpp
You can configure `ncmpcpp` to send `SIGUSR1` to `bum` on every song change.
```
# .ncmpcpp/config
# Execute bum on song change.
execute_on_song_change = "pkill -USR1 bum"
```
### shell
You can use `mpc idleloop` to send `SIGUSR1` to `bum` on every song change.
```sh
#!/bin/sh
# Wake up bum on song change.
while :; do
mpc idleloop player | pkill -USR1 bum$
done
```
[](https://pypi.python.org/pypi/bum/) [](./LICENSE.md) [](https://travis-ci.org/dylanaraps/bum)
`bum` is a daemon that downloads album art for songs playing in `mpd` and displays them in a little window. `bum` doesn't loop on a timer, instead you can send it `SIGUSR1` to make it wake up and download album art for the current playing track. This makes `bum` lightweight and makes it idle at `~0%` CPU usage.
`bum` uses [musicbrainz](https://musicbrainz.org/) to source and download cover art, if an album is missing it's cover art you can easily create an account and fill in the data yourself. `bum` outputs a `release-id` which you can use to find the exact entry on musicbrainz.
Note: `bum` is meant to be used with files that don't have embedded album art (`mopidy-spotify`).

## Dependencies
- `python 3.6+`
- `python-mpv`
- `musicbrainzngs`
- `mpc`
## Installation
```py
pip install bum
```
## Usage
```sh
usage: bum [-h] [--size "px"] [--cache_dir "/path/to/dir"] [--version]
bum - Download and display album art for mpd tracks.
optional arguments:
-h, --help show this help message and exit
--size "px" what size to display the album art in.
--cache_dir "/path/to/dir"
Where to store the downloaded cover art.
--version Print "bum" version.
```
## Customization
### ncmpcpp
You can configure `ncmpcpp` to send `SIGUSR1` to `bum` on every song change.
```
# .ncmpcpp/config
# Execute bum on song change.
execute_on_song_change = "pkill -USR1 bum"
```
### shell
You can use `mpc idleloop` to send `SIGUSR1` to `bum` on every song change.
```sh
#!/bin/sh
# Wake up bum on song change.
while :; do
mpc idleloop player | pkill -USR1 bum$
done
```
Release files for bum 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bum-0.0.3.tar.gz | 4.1 kB | Details |
Release files / bum-0.0.3.tar.gz
| Download URL | bum-0.0.3.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
25ea5c30ddf52d3c9fdd7a162e51cb87e750fc63ce65aba7925b46a97984bb22
|
|
BLAKE2b-256 checksum How to use checksums |
31b5534957394e80a6010ec0b24b9628c1203d002c52dab1ac77ba84453496bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |