SkypeMood
Amarok 2.x Scripts
Score 53%
Description:

Shows your current Song as Skype Mood-Message. Linux only.

Saves and restores your original Mood-Message from Skype when not playing. See Amarok -> "Tools" -> "Configure SkypeMood" for Help and Options.



Only requires python-dbus to work.
Last changelog:

7 years ago

1.9.1 bugfix for nag when skype is not running
1.9 python version detection, better error reporting.
1.8 Bugfix: corrected setting mood message on track change and other fixes. Added version to configure help dialog
1.7 Added support for changing metadata (Radio Stations), fixed bug with smart message detection.
1.6 Added Smart Mood, fixed stop/end bug, Added "Paused Equals Stopped" option
1.0 Initial Release

Known Bugs:
-none

pod

6 years ago

hi, thanks for this, just tweaked it so it doesn't nag when skype isn't running, changes below,
cheers,
mat

import dbus
import sys

try:
arg1 = sys.argv[1]
except:
arg1 = ""

arg1 = arg1.decode('utf-8')

#print arg1;

try:
bus = dbus.SessionBus()
skype = bus.get_object('com.Skype.API', '/com/Skype')
if skype:
answer = skype.Invoke('NAME Amarok')
if answer != 'OK':
sys.exit('Could not bind to Skype client')
answer = skype.Invoke('PROTOCOL 7')
if (answer != 'PROTOCOL 7'):
sys.exit('Could not agree on protocol!')
answer = skype.Invoke('SET PROFILE MOOD_TEXT ' + arg1)
sys.stdout.write("DONE");
else: sys.exit('Skype not running')
except dbus.exceptions.DBusException:
# it's not running
sys.stdout.write("DONE");
except Exception as inst:
sys.stdout.write('Exception of type {0} caught, details : {1}'.format(type(inst), inst));
pass

Report

C

bhelm

6 years ago

thank you for your report and the great fix! its now integrated in 1.9.1. i have skype always running, so did not get that error. very big thanks for your help!

Report

dubis

6 years ago

Hi,

I'm running with Kubuntu. Your SkypeMood script seems working well, but skype doesn't remember to allow amarok connecting on SKype, as I 've to click on the agreement pop up each time the music changed.

I went to the Public API configuration in the skype option but I can't add amarok in this case, such as Kopete is present.

I check the config files of skype I found Kopete in the config.xml file and I tried to add amarok without success. It's look like this file is regeraneted each time I started Skype.

Thank for your help....

Report

dubis

6 years ago

Problem solved with the update
You can trash my post

Report

avlas

7 years ago

Hi,

I find this plugin very nice. I would like to know though how can I remove automatically the skype mood when amarok has stopped.

Thanks!

Report

C

bhelm

7 years ago

This problem is resolved with SkypeMood 1.6.

Thank you for using and have fun! :)

Report

PingusPepan

7 years ago

Hello, I've just upgraded to the development version of Kde 4.5 and your script stopped working...
There were probably some changes in the python dbus system. Please, can you do anything with this? I really like your script. It is a phenomenal work.

Report

PingusPepan

7 years ago

I'm not sure why, but sometimes it does work and sometimes it does not... Hmm...

Report

C

bhelm

7 years ago

some people reported problems with kde 4.5 and dbus, as i can read there: (known issues)

https://bbs.archlinux.org/viewtopic.php?id=97899

you can try that mt patch yourself:
http://aur.archlinux.org/packages.php?ID=37728

there are some comments with urls to patch, also look at the PKGBUILD file how it is compiled.

iam currently trying to get kde 4.5 running to reproduce the problem, but it seems that it is a kde/dbus problem. the skypemood's dbus-part is pretty simple, there is not much that can go wrong as far as phython/phyton-dbus and dbus itself is working.

you can try/debug it with "python ~/.kde4/share/apps/amarok/scripts/SkypeMood/setskypemood.py test" yourself (this command sould set your mood to "test")

Report

PingusPepan

7 years ago

I'm not pretty sure where the problem is. Maybe it has something to do with the Amarok itself. But right now I can't tell because it started working and I even don't know when.....

Report

symbianflo

7 years ago

finally a working mood script for skype
congrats ,
Tested on amarok 2.3.1 skype 2.1.0.81
on mandriva 2009.1 & 2010.0 &2010.1 all x86_64
you really done a great work
thx m8 ya rock :D

Report

7 years ago

1.9.1 bugfix for nag when skype is not running
1.9 python version detection, better error reporting.
1.8 Bugfix: corrected setting mood message on track change and other fixes. Added version to configure help dialog
1.7 Added support for changing metadata (Radio Stations), fixed bug with smart message detection.
1.6 Added Smart Mood, fixed stop/end bug, Added "Paused Equals Stopped" option
1.0 Initial Release

Known Bugs:
-none

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
1.9.1
updated Feb 03 2011
added Jun 01 2010
downloads today
0
page views today 3