[Konversation-devel] [Bug 120362] /media not showing artist or album info for Kaffeine

Chris chris.kcat at gmail.com
Wed Jan 18 06:08:01 CET 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=120362         




------- Additional Comments From chris.kcat gmail com  2006-01-18 06:07 -------
It does still have the problem. This should fix it (not knowing much of anything about Python either, but it works for me):

--- old_media	2006-01-17 20:56:53.000000000 -0800
+++ media	2006-01-17 20:59:51.000000000 -0800
 @ -80,10 +80,12  @
 
     kaffeine = check_running('kaffeine')
     if kaffeine:
-        string = os.popen('dcop '+kaffeine+' KaffeineIface title').readline().rstrip('\n')
+        title = os.popen('dcop '+kaffeine+' KaffeineIface title').readline().rstrip('\n')
+        artist = os.popen('dcop '+kaffeine+' KaffeineIface artist').readline().rstrip('\n')
+        album = os.popen('dcop '+kaffeine+' KaffeineIface album').readline().rstrip('\n')
 
-        if string:
-            string=pretty_print(string)+' [Kaffeine]'
+        if title:
+            string=pretty_print(title,artist,album)+' [Kaffeine]'
             Popen(['dcop', port, 'Konversation', 'say', server, target, string]).communicate()
             sys.exit(0)
         else:


More information about the Konversation-devel mailing list