Skip to main content

mpdnotify - get notification when changing song

Project description

mpdnotify

Notifies when mpd's song changes.

mpdnotify

Installation

It has been test on Debian 9.5, it shall work on any other Linux distribution with Python >= 3.2. Please let me now if it works on OSX.

PyPa

For now, mpdnotify is not a PyPa's package.

Manual

Requirements

Installation

git clone https://github.com/chuugar/mpdnotify.git
cd mpdnotify
pip3 install -r requirements.txt -e .

Usage

A few arguments can be passed to mpdnotify :

  • -a / --appname : specifies the app name for notify-send.
  • -c / --config : path to the configuration file.
  • --host : mpd's address.
  • -m / --musicdir : path to mpd's music library folder.
  • -p / --port : mpd's server port.
  • -o / --oneshot : send a notification and exit immediately.

All this arguments can be save in a configuration file, please see mpdnotifyrc.sample for further informations.

Once running, mpdnotify will wait for the next song to send a notification (unless -o / --oneshot has been passed). Cover is used as notification icon if a file (cover/front/album).(png/jpg) is find in the same folder as the music file.

TODO

  • Add a test suite.
  • Allow user to change the notification format.
  • If cover cannot be found as an image, look at the tags.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mpdnotify-1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mpdnotify-1.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file mpdnotify-1.0.tar.gz.

File metadata

  • Download URL: mpdnotify-1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.3

File hashes

Hashes for mpdnotify-1.0.tar.gz
Algorithm Hash digest
SHA256 1461b80cb4772640c25bc03b19977789523b5f918ae15588b8860e0409bef0e7
MD5 c26d1362163b5e7c2df7ace2c89125fb
BLAKE2b-256 535cbb77aa9aefe97274ec57c8215d119e41ccf39ebeeef0f5107bcc1e2c03fc

See more details on using hashes here.

File details

Details for the file mpdnotify-1.0-py3-none-any.whl.

File metadata

  • Download URL: mpdnotify-1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.3

File hashes

Hashes for mpdnotify-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8d99d0d6d56403dc5e6ba7bd467c7d2f184c740800641269fbd05df670045cee
MD5 a627eb60f31b38d0b9b71656a08aa47a
BLAKE2b-256 71ba1141fd7bdbc0cf9650353cb4d06f469a559d9cf9938e0bb499112a33cc3c

See more details on using hashes here.

Supported by

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