From 0755ac5fb5784dcf0d63e21dcea191aa65a3fe97 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 1 Aug 2013 13:49:42 +0000 Subject: added workardound for new audacious playlist format 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; -- cgit v0.10.2