[rhythmbox] [upnp] Fix run-time warnings



commit 56471f98771fe0ba78ec2d3541f45ad1be34805b
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Dec 11 12:53:24 2009 +0000

    [upnp] Fix run-time warnings

 plugins/coherence/upnp_coherence/__init__.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/coherence/upnp_coherence/__init__.py b/plugins/coherence/upnp_coherence/__init__.py
index d7de3cc..caf2b46 100644
--- a/plugins/coherence/upnp_coherence/__init__.py
+++ b/plugins/coherence/upnp_coherence/__init__.py
@@ -78,10 +78,10 @@ class CoherencePlugin(rb.Plugin, log.Loggable):
         the_icon = None
         face_path = os.path.join(os.path.expanduser('~'), ".face")
         if os.path.exists(face_path):
-            file = gio.File(file=path_path);
+            file = gio.File(face_path);
             url = file.get_uri();
-            info = file.query_info("standard::fast-content-type");
-            mimetype = info.get_attribute_as_string("standard::fast-content-type");
+            info = file.query_info("standard::content-type");
+            mimetype = info.get_attribute_as_string("standard::content-type");
             pixbuf = gtk.gdk.pixbuf_new_from_file(face_path)
             width = "%s" % pixbuf.get_width()
             height = "%s" % pixbuf.get_height()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]