Finding the length of an mp3 file
Finding the length of an mp3 file Question: So i have the code: import glob,os import random path = ‘C:\Music\’ aw=[] for infile in glob.glob( os.path.join(path,’*.mp3′) ): libr = infile.split(‘Downloaded’,1) aw.append(infile) aww = -1 while 1: aww += 1 print len(aw),aww random.shuffle(aw) awww = aw[aww] os.startfile(awww) but all it does is go through all of …