Go Back   abi>>forums > MP3 Players By Brand > SanDisk Sansa > Sansa Clip / Clip+ / Clip Zip

Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 05-23-2010, 04:42 PM
b27 b27 is offline
Junior Member
Join Date: May 2010
Posts: 1

you can use the script provided below. It rewrites the paths relative to the location of the m3u and tranlsates all uri escaped characters (i.e. %20)

#!/usr/bin/perl -w
use File::Basename;
use Cwd 'abs_path';
my $filenamei = basename($ARGV[0]);
my $filedir  = dirname($ARGV[0]);
my $filenameo=".tmp.".$filenamei;
open($fhi, "<". $filedir."/".$filenamei);
open($fho, ">". $filedir."/".$filenameo);
my $cwd = abs_path($filedir)."/";
while (<$fhi>)
  print $fho $_;
rename($filedir."/".$filenameo, $filedir."/".$filenamei);
Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 04:23 AM.