mirror of
https://github.com/soimort/you-get.git
synced 2025-03-13 11:24:02 +03:00
fix issue #4 that can't download from Xiami
This commit is contained in:
parent
d8515ab413
commit
b8abc31458
@ -28,7 +28,7 @@ def location_dec(str):
|
|||||||
return parse.unquote(out).replace("^", "0")
|
return parse.unquote(out).replace("^", "0")
|
||||||
|
|
||||||
def xiami_download_song(sid, output_dir = '.', merge = True, info_only = False):
|
def xiami_download_song(sid, output_dir = '.', merge = True, info_only = False):
|
||||||
xml = get_html('http://www.xiami.com/song/playlist/id/%s/object_name/default/object_id/0' % sid)
|
xml = get_html('http://www.xiami.com/song/playlist/id/%s/object_name/default/object_id/0' % sid, faker = True)
|
||||||
doc = parseString(xml)
|
doc = parseString(xml)
|
||||||
i = doc.getElementsByTagName("track")[0]
|
i = doc.getElementsByTagName("track")[0]
|
||||||
artist = i.getElementsByTagName("artist")[0].firstChild.nodeValue
|
artist = i.getElementsByTagName("artist")[0].firstChild.nodeValue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user