Roland0 wrote: > > copy code into a file (e.g. m3ucopy.pl) > make file executable > adjust path in $target > test ($sim = 1 means simulate, change to $sim = 0 to actually copy) > run ./m3ucopy.pl < /path/to/playlist.m3u > script preserves one directory level (e.g. "Artist - Album"/track.mp3) > doesn't copy flac if mp3 of same base name exists
Exporting a playlist from LMS to a USB stick is exactly what I was looking for. I haven't found any other option on the web apart from this script (the suggested "Amok Playlist copy" doesn't read the playlist file, complaining that it isn't recognized as a Winamp playlist). However, I have problems running the script. I am aware that it is probably difficult to help me because hardware/software vary so much, but maybe somebody can point me in the right direction? Obviously it doesn't help that I have only very basic knowledge of Linux :-) I have LMS running on a Qnap NAS (QLogitechMediaServer). I copied the script into a file, made it executable (chmod u+x) and adjusted the target path. However, when running the script I get -sh: /share/Public/CopyPlaylistToUSB.pl: /usr/bin/perl^M: bad interpreter: No such file or directory So I checked and couldn't find the file /usr/bin/perl or any other version of Perl, so I installed it via the Qnap App Center. Now I have a folder /opt with /bin and /lib inside. In the /bin folder there is a file called perl. So I changed the first line in your script to #!/opt/bin/perl but I still get the error: -sh: /share/Public/CopyPlaylistToUSB.pl: /opt/bin/perl^M: bad interpreter: No such file or directory But the file perl is there... Sorry for being such a Noob... :-) Maybe you could turn this script into a plugin for LMS ;-D ------------------------------------------------------------------------ aemneos's Profile: http://forums.slimdevices.com/member.php?userid=60269 View this thread: http://forums.slimdevices.com/showthread.php?t=108762 _______________________________________________ Squeezecenter mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/squeezecenter
