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

Eike Hein sho at eikehein.com
Thu Jan 19 04:41:10 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         
sho eikehein com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From sho eikehein com  2006-01-19 04:41 -------
SVN commit 499936 by hein:

Improved Kaffeine support in the media script. Patch by Chris. Thanks!
BUG:120362


 M  +1 -0      ChangeLog  
 M  +7 -5      scripts/media  


--- trunk/extragear/network/konversation/ChangeLog #499935:499936
 @ -70,6 +70,7  @
 - Status bar now showing context-relevant information (link URLs, menu item descriptions)
 - Changed hard-coded channel join taskbar notification into a configurable notification event
 - Yammi media player is now supported by media script
+- Improved Kaffeine support in the media script
 - QUIT events for users are now shown in any queries you have open with them
 - Fixed nickname context menu actions not working in queries
 - Redesigned tab notifications allowing for colored LEDs or text labels, the color being configurable per event class
--- trunk/extragear/network/konversation/scripts/media #499935:499936
 @ -79,11 +79,13  @
                 bad_apps = ['JuK']
 
     kaffeine = check_running('kaffeine')
-    if kaffeine:
-        string = os.popen('dcop '+kaffeine+' KaffeineIface title').readline().rstrip('\n')
-
-        if string:
-            string=pretty_print(string)+' [Kaffeine]'
+    if kaffeine:        
+        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 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