fix album name replace : to placeholder

This commit is contained in:
codepongo 2013-06-04 08:33:05 +08:00
parent 62a4f6cd4c
commit 15fdea4946

View File

@ -105,6 +105,7 @@ def xiami_download_album(aid, output_dir = '.', merge = True, info_only = False)
album_name = r1(r'<album_name><!\[CDATA\[(.*)\]\]>', xml)
artist = r1(r'<artist><!\[CDATA\[(.*)\]\]>', xml)
doc = parseString(xml)
album_name = album_name.replace(':', ' ')
output_dir = output_dir + "/%s - %s" % (artist, album_name)
tracks = doc.getElementsByTagName("track")
track_nr = 1