Kopete Now Listening for Amarok

Amarok 1.x Scripts

Source i (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
Become a Fan
5.0

Description:
What I did is putting together all the contributed script on my blog and put it as an amarok script.
This script will update your Kopete status to "Amarok is playing title -artist", and set your global photo to current album cover.

Thanks to:
* Bona
* Gustavo
* All comments submitter on my blog

Blog entry:
http://blog.neofreko.com/index.php/2005/06/29/kopete-now-listening-plugin/#comments
Last changelog:

2006/6/10:
The "Kopete: command not found" keep on coming, again. This time I see it on amarok 1.4-svn. Seems to be related to the echo commands all over the script which doesn't have its output redirected to a file. I redirected all echo's output to ~/log.txt and the error mesage is gone. Yay! ^ ^

2006/4/14:
I finally found out what everyone had been talking about. There _was_ some error within the kopete-amarok-status.sh. Missing quotes to be exact. Thus, it would spew "Kopete comamnd not found" error.

I was using half this script and half the functionality of native Nowlistening plugin of kopete 0.12. Thus I've never realized that I have had error in my script. I guess this explain a lot why my kopete avatar has never changed . Shame on me!! Forgive my silliness.

2006/3/29:
Added option for set away message and set album cover as avatar

2006/1/12:
Added configuration dialog via Kommander includes: custom prefix status and "mark as away" option. Notice that you'll be needing Kommander for this (no biggie if you have installed Quanta as it's included)

2006/1/9:
fixed bug: script stopped when trying to excecute external script (kopete-amarok-status.sh)

2006/1/8:
fixed quote bug, affect cover image path containing space


Ratings & Comments

25 Comments

martin-julie

I am searching for detailed knowledge about <a href="http://www.exam-pass.com">exam</a> and also find this blog. This blog is created with great struggle of the blog owner. I really appreciate your blog and all your efforts that you have done for this blog. Thanks a lot.

reggler

Hi there, I don't get the script working with Amarok 1.4.9.1 and Kopete 0.50.1 on KDE 4.0.4. Kopete's status message just stays empty. Any idea?

nescius

add some conditions please, for one don't changing text which is set by user, or when auto away status is turned on, and dont determine changing status text only to away status.

Fedorateur

IS IT POSSIBLE THAN YOU PUT AN INSTALL GUIDE OR NO ? THERE IS NO GUIDES !!

Dapper

hi, this is a great script, except, it puts a nasty log.txt file in my home directory and I have to keep deleting it, can you either correct the script or tell me how to fix, thanks.

poisoned

I don't know if you noticed .... but there is already a (official) kopete plugin that does exactly that, only it works with Kscd, Noatun, Juk, Kaffeine, XMMS _and_ amarok =) (no offence, just wondering)

jant

Hi everybody, I'm using Kubuntu 5.10, and I've installed this script using the Amarok Script Manager. When I run it I get this error in the output log: —————————————– ../scripts/kopete-now-listening/getcfg.sh: line 4: config.conf: File or directory doesn’t exist ../scripts/kopete-now-listening/getcfg.sh: line 4: config.conf: File or directory doesn’t exist /home/jant/.kde/share/apps/amarok/scripts/kopete-now-listening/kopete-now-listening.sh: line 27: Amarok: command not found arguments do not match no such function /home/jant/.kde/share/apps/amarok/scripts/kopete-now-listening/kopete-now-listening.sh: line 33: Kopete: command not found —————————————– I've checked the directories and scripts and they're are correctly located… any clue? anyone using Kubuntu 5.10? Thanks in advance! jant

Ekardnam

Shouldn't be capitalized letters? (amarok, kopete. Just a guess.)

neofreko

There were missing quotes that make the script interpreted incorrectly by *sh. Those Kopete and Amarok string came out from a line of dcop command such as: "dcop Kopete SetAway blah blah". It's now fixed in 0.3.1 :)

rokkford

i get the following: amarok: BEGIN: void ScriptManager::slotReceivedStderr(KProcess*, char*, int) amarok: [ScriptManager] [ERROR!] kopete-now-listening.sh: amarok: ~/.kde/share/apps/amarok/scripts/kopete-now-listening/kopete-now-listening.sh: line 27: Kopete: command not found amarok: amarok: END__: void ScriptManager::slotReceivedStderr(KProcess*, char*, int) - Took 0.00021s i just get the image to kopete, but no text...

boardercoach

would be cool if one could set the font style when using the "automatically send in chat window" option :)

pembo13

Does the script _have_ to change my status? Can't I be online and have the script work?

exclude

When I set my status by hand, to offline for example, this script will set me online again. Is there not a way to detect the kopete status before and re-use that?

neofreko

Well, user's comment in my blog said it ahs something to do with the 0 option in the the setAway dcop call. This 0 force our satus to be online. This 0 also affect our away status. 0 means not away. So I geuss, if you could just check the mark as away option, you wouldn't be forced to be online. Lemme know if it works on you. Thx

katswaio

kopete reports: "unable to store vCard for" each time the script changes the picture. Anyway, it's probably not becouse of the script, but becouse kopete doesn't fully suport the yahoo protocol (it's just my guess).

neofreko

I've seen that message as well. But it's hard reproduce the message. I just made to pop it up once. But now it's gone. It has somthing to do with global identity, I guess.

katswaio

The message pops up every time I change the photo, manualy or with your script. I don't remember this happening before I upgraded kopete to the last cvs version. Now i,m thinking about downgrading it. What version are you using?

neofreko

I am using kopete 0.11 on KDE 3.5.0-1.7.fc4.kde

neofreko

I just made an update. Somehow after i put a fix for the white space bug, the script will be stopped when trying to execute outer script. I found out that this line below what has make it stopped: source "blah blah" I change it to: `source "blah blah"` Notice the backtick. And now it works. I'm sorry for the silly bug :(

neversfelde

I'd like to test this script, but it does not work for me. I'm using the latest KDE and amarok. I'm not able to start the script?

neofreko

all you have to do is install the script via the script manager. Open Tools -> Script Manager, click the Install Script button and locate the tar.gz file Run the script with the Run button

neofreko

Sorry for my former dummy guide answer :D. To test wether the script has run, do this in console: [geek@toni kbfx-theme]$ cat /tmp/amarok-last-song KoRn - 10 Or A 2-Way [geek@toni kbfx-theme]$ cat /tmp/amarok-last-album See You On The Other Side [geek@toni kbfx-theme]$ ls -l /tmp/kopete-amarok-cover.png -rw-rw-r-- 1 geek geek 22559 Jan 8 09:31 /tmp/kopete-amarok-cover.png [geek@toni kbfx-theme]$

Carroarmato0

The script works, I've also tried your guide in the terminal and everything is OK, but when I check Kopete nothing has changed, I'm using a hotmail account and in my name nothing has changed.

khertz

This script don't change your nickname, it change your away status.

bram85

OK, these files exist for me. However, the picture doesn't seem to be visible for other MSN users. Are there any requirements on the Kopete version? Using 0.10.4 (KDE 3.4) at the moment.

Pling
0 Affiliates
Details
license
version 0.1.3.2
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 0

More Amarok 1.x Scripts from neofreko:

Copy To
neofreko
last update date: 18 years ago

Score 5.0

Other Amarok 1.x Scripts:

Gnome Play Video in Totem
mwheatland
last update date: 19 years ago

Score 5.0

editLyrics-gnome
ZeeD
last update date: 19 years ago

Score 5.0

amarok Alarm
aroth
last update date: 16 years ago

Score 5.0

amaroK Web Collection V xmms
pti-jean
last update date: 16 years ago

Score 5.0

SongLogger
lucatnt
last update date: 17 years ago

Score 5.0

amaroK Web Collection
pti-jean
last update date: 16 years ago

Score 5.0



System Tags