D136+: generate-shots.js输出路径修复 — JZAO外置硬盘优先
Some checks failed
自动更新代码和重启 / update-and-restart (push) Has been cancelled
CI检查 + 自动部署 / check (push) Has been cancelled
CI检查 + 自动部署 / deploy (push) Has been cancelled

OUT_DIR改为JZAO优先(/Volumes/JZAO/.../zai-fu-fei-xiu-xian/ep01)
本地outputs/shots/作为fallback
导航写了JZAO但代码没落地 → 现在代码也落地了
This commit is contained in:
冰朔 2026-06-21 16:56:34 +08:00
parent cf4eb04068
commit 2d04a28246

View File

@ -7,7 +7,11 @@ const fs = require('fs');
const path = require('path');
const ENCODING_FILE = path.resolve(__dirname, '../outputs/付费修仙-ep01-director-encoding.json');
const OUT_DIR = path.resolve(__dirname, '../outputs/shots');
// D136+ 输出优先JZAO外置硬盘 · 本地fallback
const JZAO_SHOTS = '/Volumes/JZAO/铸渊-ICE-GL-ZY001/OUT-输出/视频/zai-fu-fei-xiu-xian/ep01';
const LOCAL_SHOTS = path.resolve(__dirname, '../outputs/shots');
const OUT_DIR = fs.existsSync(JZAO_SHOTS) ? JZAO_SHOTS : LOCAL_SHOTS;
async function main() {
const encoding = JSON.parse(fs.readFileSync(ENCODING_FILE, 'utf8'));