From 1d5cb7fae5f28ece3a3068d5a8e6fb087d0a3a4c Mon Sep 17 00:00:00 2001 From: jackyzy823 Date: Thu, 10 Jul 2014 22:28:26 +0800 Subject: [PATCH] fix small bug --- src/you_get/extractor/kugou.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/you_get/extractor/kugou.py b/src/you_get/extractor/kugou.py index cd825955..5c5a115d 100644 --- a/src/you_get/extractor/kugou.py +++ b/src/you_get/extractor/kugou.py @@ -13,8 +13,8 @@ def kugou_download(url, output_dir=".", merge=True, info_only=False): html=get_html(url) ticket=r1(r'"ticket":\s*"(.*)"',html) j=loads(str(b64decode(ticket),encoding="utf-8")) - url=j[u'file'] - title=j[u'songName'] + url=j['file'] + title=j['songName'] songtype, ext, size = url_info(url) print_info(site_info, title, songtype, size) if not info_only: