Merge branch 'fixed-some-album-name-endwith-spaces-cause-FileNotFoundError-problum' of https://github.com/bigfuji/you-get into bigfuji-fixed-some-album-name-endwith-spaces-cause-FileNotFoundError-problum

This commit is contained in:
Mort Yao 2017-05-12 12:26:18 +02:00
commit 0f4f184643
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -29,7 +29,7 @@ def netease_cloud_music_download(url, output_dir='.', merge=True, info_only=Fals
j = loads(get_content("http://music.163.com/api/album/%s?id=%s&csrf_token=" % (rid, rid), headers={"Referer": "http://music.163.com/"}))
artist_name = j['album']['artists'][0]['name']
album_name = j['album']['name']
album_name = j['album']['name'].strip()
new_dir = output_dir + '/' + fs.legitimize("%s - %s" % (artist_name, album_name))
if not info_only:
if not os.path.exists(new_dir):