Merge branch 'develop' of https://github.com/pini-gh/you-get into pini-gh-develop

This commit is contained in:
Mort Yao 2015-06-09 20:40:41 +08:00
commit ddc1623c83

View File

@ -48,7 +48,7 @@ def netease_cloud_music_download(url, output_dir='.', merge=True, info_only=Fals
def netease_song_download(song, output_dir='.', info_only=False): def netease_song_download(song, output_dir='.', info_only=False):
title = "%s. %s" % (song['position'], song['name']) title = "%s. %s" % (song['position'], song['name'])
if 'hMusic' in song: if 'hMusic' in song and song['hMusic'] != None:
url_best = make_url(song['hMusic']['dfsId']) url_best = make_url(song['hMusic']['dfsId'])
elif 'mp3Url' in song: elif 'mp3Url' in song:
url_best = song['mp3Url'] url_best = song['mp3Url']