
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
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.
9 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
9 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
9 years ago
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
bhelm
9 years ago
Report
dubis
9 years ago
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
9 years ago
You can trash my post
Report
avlas
10 years ago
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
bhelm
10 years ago
Thank you for using and have fun! :)
Report
PingusPepan
10 years ago
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
10 years ago
Report
bhelm
10 years ago
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
10 years ago
Report
symbianflo
10 years ago
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