mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 08:43:58 +03:00
add new acfun's url pattern
This commit is contained in:
parent
4d0803bafb
commit
50d22ee225
@ -105,7 +105,7 @@ def acfun_download_by_vid(vid, title, output_dir='.', merge=True, info_only=Fals
|
|||||||
pass
|
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)
|
assert re.match(r'http://[^\.]*\.*acfun\.[^\.]+/\D/\D\D(\d+)', url)
|
||||||
html = get_content(url)
|
html = get_content(url)
|
||||||
|
|
||||||
title = r1(r'data-title="([^"]+)"', html)
|
title = r1(r'data-title="([^"]+)"', html)
|
||||||
|
Loading…
Reference in New Issue
Block a user