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 opencode.net

0
Score 50.0%
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:

11 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

11 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

11 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

11 years ago

what version of python do you have?

Report

latarnik

11 years ago

python 2.4.3

Report

C

falava

11 years ago

linux distribution??

Report

latarnik

11 years ago

Not popular - KateOS

Report

C

falava

11 years ago

mmm sorry , I dont know :S

Report

latarnik

11 years ago

Thanks RSt. :)

Report

RSt123

11 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

RSt123

11 years ago

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

Report

alexsantos

11 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

11 years ago

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

Report

v6lur

11 years ago

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

Report

11 years ago

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

12345678910
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs ocs-url or ocs-store to install things
Pling
Details
license
version
0.2
updated Mar 13 2008
added Mar 06 2008
downloads 24h
0
page views 24h 1
System Tags addon