any m3u program that can do this?*edit, Found...winamp users with mp3 players come in

sman789

Banned
May 6, 2003
1,038
0
0
Take the files of the mp3 list and place em in a directory....copies or originals?


i.e.
You save your favorite songs in a winamp playlist and want those songs on ur mp3 player(usb stick)
**edited
teh program
**edit again, haha...doesn't work for XP:(
 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
In python:

import shutil, os

m3u = r"c:\path\to\m3ufile" # r means raw, don't interpret backslashes
destination = "e:"

fp = file(m3u)

for line in fp:
try: os.path.exists(line.strip()) and shutil.copyfile(line.strip(), os.path.join(destination, os.path.basename(line.strip())))
except: pass

Not a very readable solution, but I was trying to reduce the number of lines so I didn't have to keep typing in nbsp nbsp etc. :p
 

sman789

Banned
May 6, 2003
1,038
0
0
thats all jibber jabber to me.....i wouldn't know where to start:(


*still searches google* :beer:
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Originally posted by: BingBongWongFooey
In python:

import shutil, os

m3u = r"c:\path\to\m3ufile" # r means raw, don't interpret backslashes
destination = "e:"

fp = file(m3u)

for line in fp:
  try: os.path.exists(line.strip()) and shutil.copyfile(line.strip(), os.path.join(destination, os.path.basename(line.strip())))
  except: pass

Not a very readable solution, but I was trying to reduce the number of lines so I didn't have to keep typing in nbsp nbsp etc. :p

Just use forward slashes, they work fine in windows.

Anyway, the iTunes/iPod combination rocks... you can drag a playlist in iTunes to your iPod and it will copy the files, or select a playlist and hit burn, and burn the playlist to a CD :)