Zip commented out for now, add flag for zipping up files later.

master
Iheanyi Ekechukwu 2013-04-30 03:10:10 -04:00
parent f76a7a861b
commit a18755ab63
1 changed files with 5 additions and 5 deletions

View File

@ -156,11 +156,11 @@ def parse_file(url):
if(len(tracks) > 1): # if(len(tracks) > 1):
if not os.path.isfile("files/zips/" + albumTitle.replace(" ", "") + ".zip"): # if not os.path.isfile("files/zips/" + albumTitle.replace(" ", "") + ".zip"):
make_archive("files/zips/" + albumTitle.replace(" ", ""), 'zip', albumPath) # make_archive("files/zips/" + albumTitle.replace(" ", ""), 'zip', albumPath)
else: # else:
print "Already have a zipfile of this junts, serve that up!" # print "Already have a zipfile of this junts, serve that up!"
#zip = zipfile.ZipFile("files/zips/" + albumTitle.replace(" ", "") + ".zip", 'w') #zip = zipfile.ZipFile("files/zips/" + albumTitle.replace(" ", "") + ".zip", 'w')
#zipdir(albumPath + "/", zip) #zipdir(albumPath + "/", zip)
#zip.close #zip.close