Merge branch 'netease-temp-fix' of https://github.com/devilintheEden/you-get into devilintheEden-netease-temp-fix

This commit is contained in:
Mort Yao 2020-03-23 11:18:23 +01:00
commit fb7aa0ceb9
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -107,6 +107,9 @@ def netease_video_download(vinfo, output_dir='.', info_only=False):
def netease_song_download(song, output_dir='.', info_only=False, playlist_prefix=""):
title = "%s%s. %s" % (playlist_prefix, song['position'], song['name'])
url_best = "http://music.163.com/song/media/outer/url?id=" + \
str(song['id']) + ".mp3"
'''
songNet = 'p' + song['mp3Url'].split('/')[2][1:]
if 'hMusic' in song and song['hMusic'] != None:
@ -115,7 +118,7 @@ def netease_song_download(song, output_dir='.', info_only=False, playlist_prefix
url_best = song['mp3Url']
elif 'bMusic' in song:
url_best = make_url(songNet, song['bMusic']['dfsId'])
'''
netease_download_common(title, url_best,
output_dir=output_dir, info_only=info_only)