summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rhimport.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/rhimport.pm b/rhimport.pm
index 359ca5c..669a2b1 100644
--- a/rhimport.pm
+++ b/rhimport.pm
@@ -28,6 +28,7 @@ package rhimport;
use IO::Handle;
use IPC::Open3;
use File::Spec;
+use URI::Escape;
my $ssh_host = "airplay";
my $ssh_user = "rhimport";
@@ -176,6 +177,8 @@ sub import_playlist
next if($entry =~ /^#/);
next if($entry =~ /^\s/);
$entry =~ s/\n$//;
+ $entry =~ s/^file:\/\///;
+ $entry = uri_unescape($entry);
next if(-d $entry);
next if(!-r $entry);
push @entries, $entry;