diff --git a/you_get/downloader/sohu.py b/you_get/downloader/sohu.py index ae31fdd74d..260c6f93ff 100644 --- a/you_get/downloader/sohu.py +++ b/you_get/downloader/sohu.py @@ -14,6 +14,11 @@ def sohu_download(url, output_dir = '.', merge = True, info_only = False): assert vid import json data = json.loads(get_decoded_html('http://hot.vrs.sohu.com/vrs_flash.action?vid=%s' % vid)) + for qtyp in ["oriVid","superVid","highVid" ,"norVid","relativeId"]: + hqvid = data['data'][qtyp] + if hqvid != 0 and hqvid != vid : + data = json.loads(get_decoded_html('http://hot.vrs.sohu.com/vrs_flash.action?vid=%s' % hqvid)) + break host = data['allot'] prot = data['prot'] urls = []