Skip to content

针对有-items参数时,视频的序号应该取整个合集中的序号,而不是取被下载的第几个#1317

Merged
iawia002 merged 5 commits intoiawia002:masterfrom
leehow1988:master
Feb 21, 2024
Merged

针对有-items参数时,视频的序号应该取整个合集中的序号,而不是取被下载的第几个#1317
iawia002 merged 5 commits intoiawia002:masterfrom
leehow1988:master

Conversation

@leehow1988
Copy link
Contributor

@leehow1988 leehow1988 commented Feb 21, 2024

比如一个列表有 100多个视频

lux -p -eto -items 29-30 https://www.bilibili.com/video/BV1jj411r7d5/

那么 下载的虽然是第 29 ~ 30 个视频,那么后缀应该是就是 xxx P29 ~ xxx P30 使用dataIndex变量的话就变成 xxxx P1 ~ xxx P2了。 这里修正一下。

所以这里将变量改为 index 代表整个合集里的第几个。

Copy link
Owner

@iawia002 iawia002 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@iawia002 iawia002 merged commit 3787092 into iawia002:master Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants