mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 08:43:58 +03:00
fix small bug
This commit is contained in:
parent
ca5151ee58
commit
1d5cb7fae5
@ -13,8 +13,8 @@ def kugou_download(url, output_dir=".", merge=True, info_only=False):
|
|||||||
html=get_html(url)
|
html=get_html(url)
|
||||||
ticket=r1(r'"ticket":\s*"(.*)"',html)
|
ticket=r1(r'"ticket":\s*"(.*)"',html)
|
||||||
j=loads(str(b64decode(ticket),encoding="utf-8"))
|
j=loads(str(b64decode(ticket),encoding="utf-8"))
|
||||||
url=j[u'file']
|
url=j['file']
|
||||||
title=j[u'songName']
|
title=j['songName']
|
||||||
songtype, ext, size = url_info(url)
|
songtype, ext, size = url_info(url)
|
||||||
print_info(site_info, title, songtype, size)
|
print_info(site_info, title, songtype, size)
|
||||||
if not info_only:
|
if not info_only:
|
||||||
|
Loading…
Reference in New Issue
Block a user