# amarok_xchat by sven kissner (aka chimaera)## simple script to display the song currently played in amarok__module_name__ = "amarok_xchat"__module_version__ = "0.2"__module_description__ = "python module for xchat to display titles playing in amarok"import xchatimport commandsdef amarok_send(word, word_eol, userdata): xchat.command('me is listening to ' + commands.getoutput('dcop amarok player artist') + " - " + commands.getoutput('dcop amarok player title')) return xchat.EAT_ALLxchat.hook_command('amarok', amarok_send)xchat.prnt('amarok_xchat v0.2 loaded..')