mirror of
https://github.com/soimort/you-get.git
synced 2025-01-25 06:25:03 +03:00
[BiliBili] Better Multi-Part Video Naming
This commit is contained in:
parent
61d9bf124e
commit
db16bcb659
@ -167,10 +167,10 @@ def bilibili_download(url, output_dir='.', merge=True, info_only=False, **kwargs
|
|||||||
if not pages:
|
if not pages:
|
||||||
cids = [cid]
|
cids = [cid]
|
||||||
titles = [r1(r'<option value=.* selected>\s*([^<>]+)\s*</option>', html) or title]
|
titles = [r1(r'<option value=.* selected>\s*([^<>]+)\s*</option>', html) or title]
|
||||||
|
|
||||||
for i in range(len(cids)):
|
for i in range(len(cids)):
|
||||||
|
completeTitle=title+"-"+titles[i]#Build Better Title
|
||||||
bilibili_download_by_cid(cids[i],
|
bilibili_download_by_cid(cids[i],
|
||||||
titles[i],
|
completeTitle,
|
||||||
output_dir=output_dir,
|
output_dir=output_dir,
|
||||||
merge=merge,
|
merge=merge,
|
||||||
info_only=info_only)
|
info_only=info_only)
|
||||||
|
Loading…
Reference in New Issue
Block a user