mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 08:43:58 +03:00
parent
97f86cb96c
commit
c8a35458dd
@ -12,6 +12,8 @@ import os
|
||||
|
||||
def netease_cloud_music_download(url, output_dir='.', merge=True, info_only=False):
|
||||
rid = match1(url, r'id=(.*)')
|
||||
if rid is None:
|
||||
rid = match1(url, r'/(\d+)/?$')
|
||||
if "album" in url:
|
||||
j = loads(get_content("http://music.163.com/api/album/%s?id=%s&csrf_token=" % (rid, rid), headers={"Referer": "http://music.163.com/"}))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user