My m3u to file script
October 31st, 2009
My girlfriend (perfect and beautiful, of course) was annoying me because wants to put a banshee playlist on her mp3 player.
But how could i simply move only the mp3 files included in the playlist without do it manually?

Simply: PYTHON
Here is the script:
import os
f=open('##m3ufile##')
for l in f:
----if l[:1] == "/":
--------os.system( 'cp -av "' + l[:-1] +'" ##mount point of the usb player##')
##m3ufile## could be /tmp/barbara.m3u
##mount point of the usb player## could be /mnt/ipod/


@skarn: yeah i know, but, as you’ve said, 4 lines of great code kick mouse & co.’s ass
I know pacbard, but it’s more italianish in this way!
Hi Cagnulein,
your English is funny! You missed some verbs
Bye,
Pacbard
Mmmhhh… I thought that banshee had support for external mp3 player, and allowed drag ‘n’ droppin’ files to the pereipheral…
Of course this ten times geekier and thus deserves praise…