add new acfun's url pattern

This commit is contained in:
YK Liu 2017-08-05 18:35:21 +08:00
parent 4d0803bafb
commit 50d22ee225

View File

@ -105,7 +105,7 @@ def acfun_download_by_vid(vid, title, output_dir='.', merge=True, info_only=Fals
pass
def acfun_download(url, output_dir='.', merge=True, info_only=False, **kwargs):
assert re.match(r'http://[^\.]+.acfun.[^\.]+/\D/\D\D(\d+)', url)
assert re.match(r'http://[^\.]*\.*acfun\.[^\.]+/\D/\D\D(\d+)', url)
html = get_content(url)
title = r1(r'data-title="([^"]+)"', html)