feat: create subdirectory for multi-page videos
多P视频也创建子目录,子目录名称使用视频标题。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -157,11 +157,14 @@ export class ParseModalComp implements VanComponent {
|
||||
const pagesLength = workRoute.videoInfoCardData.val.pages.length
|
||||
// 合集标题,用于创建子目录
|
||||
// season 模式(番剧)使用视频标题
|
||||
// video 模式有 collectionTitle(视频合集)时使用合集名称
|
||||
// video 模式:有 collectionTitle 用合集名称,多P视频用视频标题
|
||||
const collectionTitle = workRoute.videoInfoCardData.val.collectionTitle
|
||||
const hasMultiplePages = pagesLength > 1
|
||||
const seasonTitle = workRoute.videoInfoCardMode.val == 'season'
|
||||
? cardTitle.trim()
|
||||
: (isVideoMode && collectionTitle ? collectionTitle.trim() : undefined)
|
||||
: (isVideoMode && (collectionTitle || hasMultiplePages)
|
||||
? (collectionTitle ? collectionTitle.trim() : cardTitle.trim())
|
||||
: undefined)
|
||||
|
||||
return ({
|
||||
bvid: info.page.bvid,
|
||||
|
||||
Reference in New Issue
Block a user