MusicPlayerDaemon (MPD Screenlet)

Conky

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
5.0

Description:
MusicPlayerDaemon (MPD) client screenlet
Last changelog:

# - 0.1:
# Initial player (basic controls)
# - 0.2:
# Interface optimization (faster and more personnalizable)
# - ...
# - 1.0
# Connecting to MPD server using a socket (mpc is no more required)
# Coverart (using Amazon)
# Scroll inside the playlist using the mouse wheel
# Selecting the current song based on the index
# Enhanced adding files from library box
# Enhanced personalizable interface
# Playlist scroller
# XML menu
# ...
# - 1.1.0
# Possibility to save the cover art
# Optimization of the filter
# - 1.1.1
# Improved code compatibility for Python3
# libnotify support
# - 1.1.2
# Consume and single mode support for mpd 0.15
# New theme: rightsize
# - 1.2.0
# Notify on status change
# Impoved playlist updates
# Coverart fix (needed Marketplace parameter in the URI)
# New theme: night
# Translated in French
# - 1.2.1
# Faster filter
# - 1.3.0
# Permission checking
# - 1.3.1
# Some optimizations
# - 1.3.2
# Some fixes
# Next song is shown
# Theme updates
# - 1.4.0
# New default theme: Black Winter
# Renaming some themes
# AmazonCover replaced by fetcher
# Documentation


Ratings & Comments

45 Comments

xvan

Grate application, But fails to retrieve metadata while playing an URI. This is ugly for the playlists and the notifications. I know that it's an mpd issue that doesn't shows any information, but still gmpc manages somehow to solve this!

chaopoch

There is no album while playing song, I check into the ~/.covers/covers.db2 and find the path of image is blanked like this [Celine Dion] [A New Day Has Come] image="" [] image="" [] [ABBA] [Gold] image="" [] How to fix the problem? thanks.

chrispl

~/.covers/covers.db2 is used by gmpc and not MPD Screenlet; MPD Screenlet uses covers saved as ~/.covers/artist-album.jpg Right now the AmazonCover.py does not work (it uses old Amazon API). In the next version, I will change the fetcher and it will work again.

chaopoch

Thanks for the new version, it works. Does MusicPlayerDaemonScreenlet fetch the album from http://www.freecovers.net ? if not, I recommend you to add it.

chaopoch

There is no album while playing song, I check into the ~/.covers/covers.db2 and find the path of image is blanked like this [Celine Dion] [A New Day Has Come] image="" [] image="" [] [ABBA] [Gold] image="" [] How to fix the problem? thanks.

holodeck

Hello, I love your screenlet, but I didn't like any of the themes. So I created my own. And here it is: http://www.gnome-look.org/content/show.php?content=119892

chrispl

Thanks, it looks very pro. Do you want me to include it in a release? I like it better than my themes, so can I use it as the main default theme?

holodeck

Yes please, by all means, include it! Of course you can use it as default too if you wish. In fact I would be glad if you do. :)

VCoolio

is it me or is cpu usage very high with this screenlet? It's not mpd because sonata doesn't use as much.

chrispl

What do you call a high cpu usage? My cpu usage is 1-4% for this screenlet. It will never be as fast as sonata, because it is written in python (so, it is interpreted).

VCoolio

No, it's more like 12-15% for me and it shows up as "python" under top or in conky. Playing or not playing doesn't matter, it's always 12-15% and when I press buttons in it it peaks to 30%.

chrispl

OK, I'll check next week if there is something that can be optimized.

abelrand

Seems like a neat screenlet, but when I try to launch it I get this error in the terminal: File "/home/main/.screenlets/MusicPlayerDaemon/MusicPlayerDaemonScreenlet.py", line 770 except Exception as e: (there's a caret under the 's' of "as") SyntaxError: invalid syntax

chrispl

Since python 2.6, there is a new syntax for handling exceptions. Old syntax: try: ... except Exception, e: ... New syntax: try: ... except Exception as e: ... My version is 2.6.2. I suppose you have the version 2.5 or 2.4. Am I right? If so, you should update python otherwise tell me and I will try to find out what else can be wrong.

abelrand

After a bit of work, I've got Python 2.6, and this screenlet runs. Thanks!

toralv

Really cool Screenlet. I wanted it to fit in my sitebar and made a custom theme for it. Even smaller than the 'mini' theme. http://gnome-look.org/content/show.php/rightsize+(Theme+for+MPD+Screenlet)?content=106325

chrispl

Nice theme :) Do you want me to add it to the next version of the program?

toralv

Sure! MPD Screenlet should also be in the repos, to make updates more convenient. To start with it could have it's own PPA at Launchpad.

pinknyu2

I love MPD, so I love this screenlet. My one wish, however, would be that it could fetch album art from your computer as well as Amazon--just like Sonata and GMPC. Is this totally infeasible?

chrispl

Thank you for the idea. Right now I'm very busy, but when I'll have some free time, I'll implement it (I don't think it will be too hard).

chainsawbike

error: File "MusicPlayerDaemonScreenlet.py", line 878, in setFilter val = [int(val["pos"]), self.mpd.getSongString(val), self.mpd.getTimeString(int(val['time']))] ValueError: invalid literal for int() with base 10: '' full error: http://pastebin.com/m4f9cb014

chrispl

The error should be corrected now.

chainsawbike

thanks :)

Amethyst

Thanks for this screenlet Works good

chrispl

You must have at least the version 0.1.2 of screenlets in order to use this screenlet. Here is how to install it: http://screenlets.org/index.php/FAQ#Using_the_package_manager

Pling
0 Affiliates
Details
license
version 1.4.0
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 0

Other Conky:

product
System Status
Whise
last update date: 17 years ago

Score 5.0

product
Genetic code
Whise
last update date: 17 years ago

Score 5.0

product
BCCRScreenlet
gartuz
last update date: 17 years ago

Score 5.0

product
Diggler
Whise
last update date: 17 years ago

Score 5.0

product
Comic
Whise
last update date: 17 years ago

Score 5.0

product
Clear-enGlish Theme pack (Picframe Theme
ClearenGlish
last update date: 17 years ago

Score 4.7