D136+: generate-shots.js输出路径修复 — JZAO外置硬盘优先
OUT_DIR改为JZAO优先(/Volumes/JZAO/.../zai-fu-fei-xiu-xian/ep01) 本地outputs/shots/作为fallback 导航写了JZAO但代码没落地 → 现在代码也落地了
This commit is contained in:
parent
cf4eb04068
commit
2d04a28246
@ -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'));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user