From 5cdbbd929156d69171159f3a64ed43e384818bc8 Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Wed, 30 Sep 2015 22:03:39 +0200 Subject: [PATCH] [acfun] fix "unexpected keyword argument 'json_output'" --- src/you_get/extractors/acfun.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/you_get/extractors/acfun.py b/src/you_get/extractors/acfun.py index 6d35a577..48495ff6 100644 --- a/src/you_get/extractors/acfun.py +++ b/src/you_get/extractors/acfun.py @@ -21,7 +21,7 @@ def get_srt_lock_json(id): url = 'http://comment.acfun.tv/%s_lock.json' % id return get_html(url) -def acfun_download_by_vid(vid, title=None, output_dir='.', merge=True, info_only=False): +def acfun_download_by_vid(vid, title=None, output_dir='.', merge=True, info_only=False, **kwargs): info = json.loads(get_html('http://www.acfun.tv/video/getVideo.aspx?id=' + vid)) sourceType = info['sourceType'] sourceId = info['sourceId'] @@ -109,7 +109,7 @@ def acfun_download_by_vid(vid, title=None, output_dir='.', merge=True, info_only #except: #pass -def acfun_download(url, output_dir = '.', merge = True, info_only = False ,**kwargs): +def acfun_download(url, output_dir='.', merge=True, info_only=False, **kwargs): assert re.match(r'http://[^\.]+.acfun.[^\.]+/\D/\D\D(\d+)', url) html = get_html(url)