aboutsummaryrefslogtreecommitdiff
path: root/src/player-item.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/player-item.vala')
-rw-r--r--src/player-item.vala7
1 files changed, 6 insertions, 1 deletions
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);
}