
LastFMNotify
Original
Source (link to git-repo or to original if based on someone elses unmodified work): https://github.com/fernandoalava/LastFMNotify
This script sends a notification of the song you are currently listening to.
You need to have the Python-QT bindings installed
13 years ago
Ver 0.2 It changed the way in which messages are displayed notification to be seen in the status bar.
13 years ago
Ver 0.2 It changed the way in which messages are displayed notification to be seen in the status bar.
Daniel2009
12 years ago
Quote:urpmi python-qt4
urpmi python-kde
Good luck.
Report
v6lur
12 years ago
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
13 years ago
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
falava
13 years ago
Report
latarnik
13 years ago
Report
falava
13 years ago
Report
latarnik
13 years ago
Report
falava
13 years ago
Report
latarnik
13 years ago
Report
RSt123
13 years ago
i entered 'object' between the braces and it worked :).
the line looks like this now:
class NotifyNowPlaying(object):
By,
RSt
Report
RSt123
13 years ago
Report
alexsantos
13 years ago
It should be included in the next amarok release.
Report
bsander
13 years ago
Report
v6lur
13 years ago
Report