Giter Club home page Giter Club logo

musnify-mpd's Introduction

Musnify-mpd

AUR AUR AUR AUR AUR AUR

Musnify is a simple script written in python that provides notification support for Music Player Daemon using libnotify_0.7. It can also display the album covers loaded from last.fm in the notification status or load it from the user local music library.

Dependencies

To use musnify-mpd you will need to install the following python dependencies:

# pip2 install requests mpd

Installation

To install musnify-mpd simple clone this repository into your machine:

$ git clone https://github.com/felipemarinho97/musnify-mpd.git

And so run the install.sh script inside the cloned directory.

$ cd musnify-mpd   
# ./install.sh

Arch Linux

If you are a Arch Linux user, you can also install it directly from AUR:

$ yaourt -S musnify-mpd

Configuration

After installation you may want to configure your mpd host and port, to do this copy the .example file into ~/.config/musnify-mpd

$ mkdir ~/.config/musnify-mpd
$ cp /usr/share/doc/musnify-mpd/musnify-mpdconfig.example ~/.config/musnify-mpd/musnify-mpd.config

There is a sample conf:

[mpd]
host = localhost
port = 6600
musiclibrary = ~/Music
[apiKey]
lastfm = YOUR_LASTFM_API_KEY

You always can just specify your MPD host and port:

$ musnify-mpd -h MPD_HOST -p MPD_PORT

Use

Just remember to run the script "musnify-mpd" every time you start your WM by putting it on your autostart or rc.d file and enjoy it. ๐Ÿ˜„

Author

Felipe Marinho [email protected]

If you have any suggestions please fell free to contact-me.

musnify-mpd's People

Contributors

cpiber avatar felipemarinho97 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

musnify-mpd's Issues

Covers

I have my config file setup as below, but no covers are shown. Xubuntu 20.04, python3.8. Also this code suggests to me an icon is supposed to be included? Instead I get the dreaded red X. Also not good with regex, does that regex only look for cover.jpg or does it also look at Cover.jpg

self.notification.update("MPD Stopped",icon="music")

[mpd]
host = 192.168.1.80
port = 6600

# This is where musnify-mpd will look for searching the local album covers.
musiclibrary = /media/william/Data2/BACKUP/MP3/
#

[apiKey]
# If you want to fetch the album covers from LastFm,
# enable this option and provide a apiKey.
# You can get you apiKey here: https://www.last.fm/api/account/create
#
# lastfm = YOUR_LASTFM_API_KEY

Can't run musnify

Hi, I'm trying to use musnify but when I run it I get

Loading default config
Traceback (most recent call last):
  File "/usr/bin/musnify-mpd", line 32, in <module>
    host = config.get("mpd","host", fallback=os.environ.get("MPD_HOST", "localhost"))
TypeError: get() got an unexpected keyword argument 'fallback'

How can I solve it?
Thank you!

Edit: as a workaround, I fixed it by using the 1.1 release instead of the latest.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.