MusicPlayerDaemon (MPD Screenlet)

Conky

Source (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
Score 50.0%
Description:

MusicPlayerDaemon (MPD) client screenlet
Last changelog:

9 years ago

# - 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

xvan

9 years ago

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!

Report

chaopoch

9 years ago

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.

Report

C

chrispl

9 years ago

~/.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.

Report

chaopoch

9 years ago

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.

Report

chaopoch

9 years ago

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.

Report

holodeck

9 years ago

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

Report

C

chrispl

9 years ago

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?

Report

holodeck

9 years ago

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. :)

Report

VCoolio

10 years ago

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

Report

C

chrispl

10 years ago

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).

Report

VCoolio

10 years ago

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%.

Report

C

chrispl

10 years ago

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

Report

abelrand

10 years ago

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

Report

C

chrispl

10 years ago

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.

Report

abelrand

10 years ago

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

Report

toralv

10 years ago

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

Report

C

chrispl

10 years ago

Nice theme :)

Do you want me to add it to the next version of the program?

Report

toralv

10 years ago

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.

Report

pinknyu2

10 years ago

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?

Report

C

chrispl

10 years ago

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).

Report

chainsawbike

11 years ago

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

Report

C

chrispl

11 years ago

The error should be corrected now.

Report

chainsawbike

11 years ago

thanks :)

Report

Amethyst

11 years ago

Thanks for this screenlet
Works good

Report

C

chrispl

11 years ago

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

Report

9 years ago

# - 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

12345678910
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.4.0
updated Feb 13 2010
added May 08 2008
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0