mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 08:43:58 +03:00
[acfun] improve regex for getting video part title
This commit is contained in:
parent
e1d5581e65
commit
0984190f93
@ -78,7 +78,7 @@ def acfun_download(url, output_dir='.', merge=True, info_only=False, **kwargs):
|
|||||||
title = escape_file_path(title)
|
title = escape_file_path(title)
|
||||||
assert title
|
assert title
|
||||||
|
|
||||||
video = re.search('data-vid="(\d+)"\s*data-scode="".*>([^<]+)</a>', html)
|
video = re.search('data-vid="(\d+)"\s*data-scode=""[^<]*title="([^"]+)"', html)
|
||||||
vid = video.group(1)
|
vid = video.group(1)
|
||||||
title = title + ' - ' + video.group(2)
|
title = title + ' - ' + video.group(2)
|
||||||
acfun_download_by_vid(vid, title,
|
acfun_download_by_vid(vid, title,
|
||||||
|
Loading…
Reference in New Issue
Block a user