From d2128789e5fda4a916e865f29692721a4e4f5205 Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Thu, 27 Jun 2013 09:13:46 +0800 Subject: [PATCH] Sohu: fix #204 --- src/you_get/downloader/sohu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/you_get/downloader/sohu.py b/src/you_get/downloader/sohu.py index 5e6df793..4400836a 100644 --- a/src/you_get/downloader/sohu.py +++ b/src/you_get/downloader/sohu.py @@ -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):