Zip commented out for now, add flag for zipping up files later.
parent
f76a7a861b
commit
a18755ab63
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue