Skip to content

Commit

Permalink
[acfun] fix "unexpected keyword argument 'json_output'"
Browse files Browse the repository at this point in the history
  • Loading branch information
soimort committed Sep 30, 2015
1 parent d9f7702 commit 5cdbbd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/you_get/extractors/acfun.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 5cdbbd9

Please sign in to comment.