comit with last rembo10 commit

This commit is contained in:
pabloalcantara
2011-08-17 09:30:22 -03:00
parent 607657dbf8
commit 6e1cb2b9fe
27 changed files with 729 additions and 216 deletions
+6 -2
View File
@@ -1,11 +1,15 @@
import os
import headphones
import argparse
import shutil
import time
from subprocess import call
try:
import argparse
except ImportError:
import lib.argparse as argparse
def encode(albumPath):
tempDirEncode=os.path.join(albumPath,"temp")
@@ -21,7 +25,7 @@ def encode(albumPath):
for r,d,f in os.walk(albumPath):
for music in f:
if any(music.endswith('.' + x) for x in headphones.MEDIA_FORMATS):
if any(music.endswith('.' + x) for x in ["flac", "m4a", "wav"]):
musicFiles.append(os.path.join(r, music))
musicTempFiles.append(os.path.join(tempDirEncode, music))