LastFMNotify

Amarok 1.x Scripts

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on git.opendesktop.org

0
Score 50%
Description:

This script sends a notification of the song you are currently listening to.
You need to have the Python-QT bindings installed

Last changelog:

10 years ago

Ver 0.2 It changed the way in which messages are displayed notification to be seen in the status bar.

Daniel2009

10 years ago

For Mandriva users, install dependencies:

Quote:urpmi python-qt4
urpmi python-kde


Good luck.

Report

v6lur

10 years ago

Hi, please add the following, so that the script doesn't spawn new (unneeded) copy at every KDE login.

Diff:


*** LastFMNotify.py.orig 2008-07-16 18:24:09.000000000 +0300
--- LastFMNotify.py 2008-07-24 18:32:19.000000000 +0300
***************
*** 97,102 ****
--- 97,107 ----
logging.debug("Notifier Starting...")
self.objN = NotifyNowPlaying(self.User,self.Password)

+ def saveState(self, sessionmanager):
+ # script is started by amarok, not by KDE's session manager
+ debug("We're in saveState. We should be avoiding session starts with this in place.\n")
+ sessionmanager.setRestartHint(QSessionManager.RestartNever)
+
############################################################################
# Stdin-Reader Thread
############################################################################



Nicely indented diff: http://paste.ubuntu.com/36990/

(Code borrowed from http://kde-apps.org/content/show.php/autoEqualizer?content=70509)

Report

latarnik

10 years ago

I get this message when running this script:
File "/home/piotr/.kde/share/apps/amarok/scripts/LastFMNotify/LastFMNotify.py", line 16
class NotifyNowPlaying():
^
SyntaxError: invalid syntax

(I have install pykde3 and pyqt3).

Report

C

falava

10 years ago

what version of python do you have?

Report

latarnik

10 years ago

python 2.4.3

Report

C

falava

10 years ago

linux distribution??

Report

latarnik

10 years ago

Not popular - KateOS

Report

C

falava

10 years ago

mmm sorry , I dont know :S

Report

RSt123

10 years ago

I also get this error - I'm using gentoo.

Report

RSt123

10 years ago

Hi again, I found a solution:
i entered 'object' between the braces and it worked :).

the line looks like this now:

class NotifyNowPlaying(object):

By,

RSt

Report

latarnik

10 years ago

Thanks RSt. :)

Report

alexsantos

10 years ago

Great work! One of the missing features of the amarok's native last.fm integration...
It should be included in the next amarok release.

Report

bsander

10 years ago

Er.. how is this different form Amarok's built-in last.fm support?

Report

v6lur

10 years ago

It seems to show "Now listening" song on the top of Recently listened tracks... which is actually rather nice.

Report

10 years ago

Ver 0.2 It changed the way in which messages are displayed notification to be seen in the status bar.

File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
Details
license
version
0.2
updated Mar 13 2008
added Mar 06 2008
downloads today
0
page views today 2
System Tags addon