From 811c712fffbb7cff3a238468808b34588dc5ed2c Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Tue, 30 Oct 2012 12:22:04 +0100 Subject: [PATCH] fix #20 --- you_get/downloader/acfun.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/you_get/downloader/acfun.py b/you_get/downloader/acfun.py index 7a5107b7..488c7f35 100644 --- a/you_get/downloader/acfun.py +++ b/you_get/downloader/acfun.py @@ -56,8 +56,7 @@ def acfun_download(url, output_dir = '.', merge = True, info_only = False): id = r1(r"\[Video\](\d+)\[/Video\]", html) or r1(r"\[video\](\d+)\[/video\]", html) if not id: - id = r1(r"src=\"/newflvplayer/player.swf\?id=(\d+)", html) - + id = r1(r"src=\"/newflvplayer/player.*id=(\d+)", html) sina_download_by_id(id, title, output_dir = output_dir, merge = merge, info_only = info_only) else: acfun_download_by_id(id, title, output_dir = output_dir, merge = merge, info_only = info_only)