This commit is contained in:
Mort Yao 2013-06-27 09:13:46 +08:00
parent 6c1be0f936
commit d2128789e5

View File

@ -8,7 +8,7 @@ import json
def real_url(host, prot, file, new):
url = 'http://%s/?prot=%s&file=%s&new=%s' % (host, prot, file, new)
start, _, host, key, _, _ = get_html(url).split('|')
start, _, host, key = get_html(url).split('|')[:4]
return '%s%s?key=%s' % (start[:-1], new, key)
def sohu_download(url, output_dir = '.', merge = True, info_only = False):