streifenleopard;604809 Wrote:
> Hi mnyb and tank121,
> I am exporting my playlists through wlan from my PC too.
> It's quite an effort to let the search and replace command run through
> every m3u-file just to get the correct path etc.
> Do you have any ideas how this procedure could be automized?
If you are using a Linux flavor OS (or you've installed Cygwin for
Windows), you could write a simple shell script to replace the paths in
the M3U files.
Probably, there's also a native Windows solution, but I'm more familiar
with Linux.
On Linux, I'd try a simple script using "bash", "find" and "sed".
Something like this: (untested)
Code:
--------------------
#!/bin/bash
path=/data/mp3
search=/data/xyz
replace=/media/sda1
for file in `find ${path} -type f -iname "*.m3u"`; do
sed -e "s#${search}#${replace}#g" ${file} > ${file}.new
mv ${file}.new ${file}
done
--------------------
--
flattermann
Christian
Home of 'SqueezeCommander' (http://www.squeezecommander.com) - The
SqueezeBox Remote Control App for Android
------------------------------------------------------------------------
flattermann's Profile: http://forums.slimdevices.com/member.php?userid=33169
View this thread: http://forums.slimdevices.com/showthread.php?t=84763
_______________________________________________
Touch mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/touch