Merge pull request #1 from soimort/develop

Update
This commit is contained in:
pastebt 2015-01-20 16:13:28 -08:00
commit 70986b95db

View File

@ -54,7 +54,7 @@ def acfun_download_by_vid(vid, title=None, output_dir='.', merge=True, info_only
pass
def acfun_download(url, output_dir = '.', merge = True, info_only = False):
assert re.match(r'http://[^\.]+.acfun.[^\.]+/v/ac(\d+)', url)
assert re.match(r'http://[^\.]+.acfun.[^\.]+/\D/\D\D(\d+)', url)
html = get_html(url)
title = r1(r'<h1 id="txt-title-view">([^<>]+)<', html)