From f302540303f676a6ff0005c30ff967524461cfa6 Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Wed, 12 Jun 2013 16:53:33 +0200 Subject: [PATCH] AcFun: fix #196 --- src/you_get/downloader/acfun.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/you_get/downloader/acfun.py b/src/you_get/downloader/acfun.py index aa880bee..684fec2f 100644 --- a/src/you_get/downloader/acfun.py +++ b/src/you_get/downloader/acfun.py @@ -16,7 +16,7 @@ def get_srt_json(id): return get_html(url) def acfun_download_by_id(id, title = None, output_dir = '.', merge = True, info_only = False): - info = json.loads(get_html('http://www.acfun.tv/api/getVideoByID.aspx?vid=' + id)) + info = json.loads(get_html('http://wenzhou.acfun.tv/api/getVideoByID.aspx?vid=' + id)) t = info['vtype'] vid = info['vid'] if t == 'sina': @@ -37,7 +37,7 @@ def acfun_download_by_id(id, title = None, output_dir = '.', merge = True, info_ x.write(cmt) def acfun_download(url, output_dir = '.', merge = True, info_only = False): - assert re.match(r'http://www.acfun.tv/v/ac(\d+)', url) + assert re.match(r'http://[^\.]+.acfun.tv/v/ac(\d+)', url) html = get_html(url) title = r1(r'

]*>([^<>]+)<', html)