mirror of
https://github.com/soimort/you-get.git
synced 2025-01-24 05:55:02 +03:00
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:
commit
0f4f184643
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user