View Single Post
  #7 (permalink)  
Old August 24th, 2007, 09:05 AM
justinware justinware is offline
Newbie Floating Down The Mistic River
 
Join Date: Aug 2007
Posts: 2
m3u playlists from linux

Hi All,

I've got some brief details about getting playlists to work on X20 from linux. This is what I've figured out:

1) the file paths need to be windows style e.g.

\music\01 - Arctic Monkeys - Brianstorm.ogg

2) the .m3u file itself needs to be windows text file (i.e. CR-LF).
3) I think the playlist can be anywhere on device.
4) The device will ignore any playlists that have old timestamps when it rebuilds the library (after disconnecting from PC). Touch all the .m3u to avoid this happening.

What I'm doing is creating my playlists using Amarok (both audio files and play lists on PC). I then use the attached perl script (renamed 'UpdateX20.pl' and made executable) to copy audio tracks on to the device and create equivalent playlist on the device.

./UpdateX20.pl *.m3u

for example. It also makes sure the timestamps of the other playlists are updated and sync's the file system. I hope someone else finds it useful.

Please note:

1) IMPORTANT: Perl scripts can easily be as malicious and dangerous as full-blown applications. Especially when your Perl coding is as bad as mine . Only use it if you're happy it's safe.
2) I'm dumping all my audio tracks in '\music' on the device even though I have a hierarchy on my PC.
3) This works on my SUSE 10.0 distro. You may need to change the script if the device mounts elsewhere on your machine.
3) It never overwrites or remove audio tracks from the device. You will need to do that manually.
4) Firmware version on my X20: 1.04
Attached Files
File Type: txt UpdateX20.txt (3.8 KB, 116 views)
Reply With Quote