小雅获取剧集时刷新文件夹

This commit is contained in:
mtvpls
2026-01-15 23:48:13 +08:00
parent e392e9f543
commit 036e909f74
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -290,7 +290,7 @@ export async function getXiaoyaEpisodes(
if (isInSeasonDir) {
// 电视剧:列出当前季的所有集
const seasonDir = pathParts.slice(0, -1).join('/');
const listResponse = await xiaoyaClient.listDirectory(`/${seasonDir}`);
const listResponse = await xiaoyaClient.listDirectory(`/${seasonDir}`, 1, 100, true);
const videoFiles = listResponse.content
.filter(item =>
@@ -318,7 +318,7 @@ export async function getXiaoyaEpisodes(
} else {
// 目录路径或电影文件路径:列出该目录下的所有视频
const targetDir = isFilePath ? pathParts.slice(0, -1).join('/') : pathParts.join('/');
const listResponse = await xiaoyaClient.listDirectory(`/${targetDir}`);
const listResponse = await xiaoyaClient.listDirectory(`/${targetDir}`, 1, 100, true);
const videoFiles = listResponse.content
.filter(item =>