
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
This script changes Kopete global nickname with a customized name based on current song information, and optionally allows to use the cover as global photo.
The customized nickname is built with a variables set that contains the information about the current song. For example:
Pattern: "Now I'm listening %t by %a, track number %b in %m (%y)"
Nick: "Now I'm listening Yesterday by The Beatles, track number 13 in Help! (1965)"
The available variables set is:
%a -> Artist name
%t -> Title name
%n -> Now Playing (same as '%a - %t')
%m -> Album name
%g -> Genre
%y -> Year
%b -> Track number
%d -> Song duration
%f -> Last.fm Station name
Note: This script changes only the nickname and (optionally) the photo, but doesn't change the away status or away message, if you want to change those items use "Kopete Now Listening for Amarok" or "kopete msn message notifier", also available in kde-apps.
Dependencies:
Kommander - http://kommander.kdewebdev.org/
ImageMagick - http://www.imagemagick.org/
12 years ago
* Version 1.0 (09/05/2006)
- Initial Release
* Version 1.1 (10/05/2006)
- The images are now pre-resized (ImageMagick MUST be installed)
- Check for the right KDE version
* Version 1.2 (10/05/2006)
- The script wasn't finishing correctly, producing system overload.FIXED
* Version 1.2.1 (29/05/2006)
- Sometimes the cover wasn't showed.FIXED
* Version 1.3 (20/09/2006)
- Now supports Last.fm Stations
- Added %f variable. It contains the Last.fm Station name
* Version 1.3.1 (07/12/06)
- Default picture shown when cover is not available, thanks to Stéphane Pontier
12 years ago
* Version 1.0 (09/05/2006)
- Initial Release
* Version 1.1 (10/05/2006)
- The images are now pre-resized (ImageMagick MUST be installed)
- Check for the right KDE version
* Version 1.2 (10/05/2006)
- The script wasn't finishing correctly, producing system overload.FIXED
* Version 1.2.1 (29/05/2006)
- Sometimes the cover wasn't showed.FIXED
* Version 1.3 (20/09/2006)
- Now supports Last.fm Stations
- Added %f variable. It contains the Last.fm Station name
* Version 1.3.1 (07/12/06)
- Default picture shown when cover is not available, thanks to Stéphane Pontier
angelorohit
10 years ago
Report
khertz
10 years ago
Report
smithee77
11 years ago
first of all thanks for this great script.
My system:
- Kubuntu 6.10 / KDE 3.5.5
- Kopete 0.12.3
- Amarok 1.4.3
I've installed the script correctly but when I make it run nothing changes in Kopete, and I get this message in the output log (right-clicking on the script name):
---------
X Error: BadDevice, invalid or uninitialized input device 166
Major opcode: 144
Minor opcode: 3
Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 166
Major opcode: 144
Minor opcode: 3
Resource id: 0x0
Failed to open device
-------------
Any clue?
Many thanks in advance!
Report
khertz
11 years ago
Report
smithee77
11 years ago
Now it works fine!!!
Many thanks.
I've solved anyway also the extrange message problem, if anyone is interested.
Report
ktulu77
12 years ago
but I have a problem : when amarok finish a song and play the next one, my system is lagging :(. It spend 2 or 3 seconds max.
I also think it will be a good idea to choose between away message or alias for the message. Because kopete module doesn't know displaying the cover of the listening Cd.
Thanks a lot.
Report
JorisSpekreijse
12 years ago
I found it out that the lagging time depends on the size of the album cover.
And when the script lags too much, the script will hang and/or consume a lot of resources.
Perhaps amaroKopete should create a smaller image and store it for further use. So the script/kopete doesn't have toe resize the image.
I don't know the code. Never had the time to look deep inside of it.
Report
JorisSpekreijse
12 years ago
But, amaroKopete hangs quite rapidly. Expecially with large pictures of the CD-covers.
Report
lhernandes
12 years ago
Great Script, I really like it...
The problem is, when I'm talking to anyone online, LiveMessenger users don't see my changed name and picture, only the ones using Kopete do.
Is this because MSN doesn't accept the Global identity option in Kopete? I'm sure it happens with LiveMessenger, and someone told me it happens with MSN 7.5, I don't know about other versions.
(maybe I'm doing something wrong?)
Thanks!
Report
lhernandes
12 years ago
Weird, huh?
Thanks anyway
Report
khertz
12 years ago
Report
BorgQueen
12 years ago
Report
rolandog
12 years ago
However, the player displays 'neighbour' when using the %n and listening to my neighbour station, and doesn't show a picture of the album's cover.
Is there a way of accessing the cover image from the last.fm stream? I'm guessing this is possible since Amarok displays the track information and album image when there is a song change.
I'm a total newbie at scripting with Amarok, but I'll try to find out how to access the image and track info.
On the overall, this is a 'most excellent' script. Keep up the good work!
Report
khertz
12 years ago
Report
rolandog
12 years ago
Report
nescius
12 years ago
take for instance these MSN idiots..
Report
protoman
12 years ago
Unhapilly, kopete dosen't aceept changing the status message without changing the state to away. I've opened a bug for it, (https://bugs.kde.org/show_bug.cgi?id=131184) but still no answer.
Report
maxime94
12 years ago
Report
protoman
12 years ago
Report
protoman
12 years ago
Report
khertz
12 years ago
Report
mani001
12 years ago
/home/manu/.kde3.5/share/apps/amarok/scripts-data/amarokopetepics/covpic.png
but when I go into that directory, there is no such file. Any idea?
Thanks.
Report
mani001
12 years ago
$CONV -resize 96x96 "$cover" $PICDIR/covpic.png.
Regards.
Report
khertz
12 years ago
Greetings
Report
joe81
12 years ago
How can I help you with this bug?
Report