From cfa93fb16c2f0460caf62f6fce6fada683dad564 Mon Sep 17 00:00:00 2001 From: Yiyin Gu Date: Fri, 20 Mar 2020 19:16:41 -0400 Subject: [PATCH] temp fix of netease download Some vip download can download through this, others can't. Still looking into it. --- src/you_get/extractors/netease.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/you_get/extractors/netease.py b/src/you_get/extractors/netease.py index f74747b1..c7c0f666 100644 --- a/src/you_get/extractors/netease.py +++ b/src/you_get/extractors/netease.py @@ -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)