mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 08:43:58 +03:00
Sohu: fix #204
This commit is contained in:
parent
6c1be0f936
commit
d2128789e5
@ -8,7 +8,7 @@ import json
|
|||||||
|
|
||||||
def real_url(host, prot, file, new):
|
def real_url(host, prot, file, new):
|
||||||
url = 'http://%s/?prot=%s&file=%s&new=%s' % (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)
|
return '%s%s?key=%s' % (start[:-1], new, key)
|
||||||
|
|
||||||
def sohu_download(url, output_dir = '.', merge = True, info_only = False):
|
def sohu_download(url, output_dir = '.', merge = True, info_only = False):
|
||||||
|
Loading…
Reference in New Issue
Block a user