aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/music-player-bridge.vala2
-rw-r--r--src/player-item.vala7
2 files changed, 7 insertions, 2 deletions
diff --git a/src/music-player-bridge.vala b/src/music-player-bridge.vala
index 03947d0..ec4fb25 100644
--- a/src/music-player-bridge.vala
+++ b/src/music-player-bridge.vala
@@ -77,7 +77,7 @@ public class MusicPlayerBridge : GLib.Object
return 2;
}
else{
- return (2 + (this.registered_clients.size * 3));
+ return (2 + (this.registered_clients.size * 4));
}
}
diff --git a/src/player-item.vala b/src/player-item.vala
index 4f95b0c..3e10b7b 100644
--- a/src/player-item.vala
+++ b/src/player-item.vala
@@ -58,7 +58,12 @@ public class PlayerItem : Dbusmenu.Menuitem
string update = v.get_string().strip();
debug("with value : %s", update);
if(property.contains("arturl")){
- update = Filename.from_uri(update.strip());
+ try{
+ update = Filename.from_uri(update.strip());
+ }
+ catch(ConvertError e){
+ warning("Problem converting URI %s to file path", update);
+ }
}
this.property_set(property, update);
}