0.10.2-10 DVD Title Scan
This commit is contained in:
@@ -547,6 +547,23 @@ export default function JobDetailDialog({
|
||||
: null;
|
||||
const encodePlanUserPresetId = Number(encodePlanUserPreset?.id);
|
||||
const reviewUserPresets = encodePlanUserPreset ? [encodePlanUserPreset] : [];
|
||||
const encodePlanManualTrackSelection = job?.encodePlan?.manualTrackSelection
|
||||
&& typeof job.encodePlan.manualTrackSelection === 'object'
|
||||
? job.encodePlan.manualTrackSelection
|
||||
: null;
|
||||
const reviewTrackSelectionByTitle = encodePlanManualTrackSelection?.titleId != null
|
||||
? {
|
||||
[encodePlanManualTrackSelection.titleId]: {
|
||||
audioTrackIds: Array.isArray(encodePlanManualTrackSelection.audioTrackIds)
|
||||
? encodePlanManualTrackSelection.audioTrackIds
|
||||
: [],
|
||||
subtitleTrackIds: Array.isArray(encodePlanManualTrackSelection.subtitleTrackIds)
|
||||
? encodePlanManualTrackSelection.subtitleTrackIds
|
||||
: []
|
||||
}
|
||||
}
|
||||
: {};
|
||||
const reviewSelectedEncodeTitleId = job?.encodePlan?.encodeInputTitleId ?? null;
|
||||
const executedHandBrakeCommand = buildExecutedHandBrakeCommand(job?.handbrakeInfo);
|
||||
const canDownloadRaw = Boolean(job?.raw_path && job?.rawStatus?.exists && typeof onDownloadArchive === 'function');
|
||||
const canDownloadOutput = Boolean(job?.output_path && job?.outputStatus?.exists && typeof onDownloadArchive === 'function');
|
||||
@@ -846,6 +863,8 @@ export default function JobDetailDialog({
|
||||
<MediaInfoReviewPanel
|
||||
review={job.encodePlan}
|
||||
commandOutputPath={job.output_path || null}
|
||||
selectedEncodeTitleId={reviewSelectedEncodeTitleId}
|
||||
trackSelectionByTitle={reviewTrackSelectionByTitle}
|
||||
availableScripts={configuredSelection.scriptCatalog}
|
||||
availableChains={configuredSelection.chainCatalog}
|
||||
preEncodeItems={reviewPreEncodeItems}
|
||||
|
||||
Reference in New Issue
Block a user