From 134f9e2bd79c85ae3aee0cf3677befdf68fa9d45 Mon Sep 17 00:00:00 2001 From: Conor Curran Date: Fri, 9 Jul 2010 17:13:49 +0100 Subject: more arturl fixes --- src/player-item.vala | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/player-item.vala') 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); } -- cgit v1.2.3