music.name = music.name.replace("/", "&")
if not artist is None:
artist = artist.replace("/", "&")
name = music.name + " - " + artist + "." + music.type
if not dirs:
if sys.platform == "darwin":
path1 = "cloudmusic/"
path2 = "/cloudmusic"
path3 = "/"
else :
path1 = "cloudmusic\\"
path2 = "\\cloudmusic"
path3 = "\\"
dirs = path1 + name
defalut_dirs = str(os.getcwd()) + path2
isExist = os.path.exists(defalut_dirs)
if not isExist:
os.makedirs(defalut_dirs)
else :
dirs += path3 + name
download.py