0.10.0-1 Update

This commit is contained in:
2026-03-14 18:24:30 +00:00
parent 96839ac05b
commit f628fdac50
4 changed files with 167 additions and 8 deletions

View File

@@ -143,7 +143,9 @@ router.post(
logger.info('post:audiobook:upload', {
reqId: req.reqId,
originalName: req.file.originalname,
sizeBytes: Number(req.file.size || 0)
sizeBytes: Number(req.file.size || 0),
mimeType: String(req.file.mimetype || '').trim() || null,
tempPath: String(req.file.path || '').trim() || null
});
const result = await pipelineService.uploadAudiobookFile(req.file, {
format: req.body?.format,

View File

@@ -10804,6 +10804,14 @@ class PipelineService extends EventEmitter {
try {
await historyService.resetProcessLog(job.id);
await historyService.appendLog(job.id, 'SYSTEM', `AAX-Upload empfangen: ${originalName}`);
logger.info('audiobook:upload:received', {
jobId: job.id,
originalName,
tempFilePath,
rawBaseDir,
outputFormat,
startImmediately
});
const probeConfig = audiobookService.buildProbeCommand(ffprobeCommand, tempFilePath);
const captured = await this.runCapturedCommand(probeConfig.cmd, probeConfig.args);
@@ -10822,12 +10830,25 @@ class PipelineService extends EventEmitter {
rawTemplate,
originalName
);
logger.info('audiobook:upload:staging', {
jobId: job.id,
tempFilePath,
rawDir: storagePaths.rawDir,
rawFilePath: storagePaths.rawFilePath,
rawTemplate,
outputTemplate
});
ensureDir(storagePaths.rawDir);
fs.renameSync(tempFilePath, storagePaths.rawFilePath);
moveFileWithFallback(tempFilePath, storagePaths.rawFilePath);
stagedRawDir = storagePaths.rawDir;
stagedRawFilePath = storagePaths.rawFilePath;
chownRecursive(storagePaths.rawDir, settings?.raw_dir_owner);
logger.info('audiobook:upload:staged', {
jobId: job.id,
stagedRawDir,
stagedRawFilePath
});
const makemkvInfo = this.withAnalyzeContextMediaProfile({
status: 'SUCCESS',
@@ -10899,6 +10920,14 @@ class PipelineService extends EventEmitter {
...(startResult && typeof startResult === 'object' ? startResult : {})
};
} catch (error) {
logger.error('audiobook:upload:failed', {
jobId: job.id,
originalName,
tempFilePath,
stagedRawDir,
stagedRawFilePath,
error: errorToMeta(error)
});
const updatePayload = {
status: 'ERROR',
last_state: 'ERROR',