0.13.1-7 Fix Series

This commit is contained in:
2026-04-14 13:28:03 +00:00
parent 9297a84eea
commit c89a93ed05
17 changed files with 174 additions and 63 deletions
+29 -7
View File
@@ -1130,6 +1130,7 @@ export default function PipelineStatusCard({
onRetry,
onDeleteJob,
onInputsChanged,
jobRow,
isQueued = false,
busy
}) {
@@ -1141,6 +1142,21 @@ export default function PipelineStatusCard({
const contextJobId = normalizeJobId(pipeline?.context?.jobId);
const retryJobId = explicitJobId || contextJobId;
const queueLocked = Boolean(isQueued && retryJobId);
const orphanSource = String(
jobRow?.makemkvInfo?.source
|| pipeline?.context?.source
|| pipeline?.context?.importSource
|| ''
).trim().toLowerCase();
const isOrphanImport = orphanSource === 'orphan_raw_import';
const isOrphanCancelled = isOrphanImport && (state === 'ERROR' || state === 'CANCELLED');
const ripCompleted = Boolean(
Number(jobRow?.rip_successful || jobRow?.ripSuccessful || pipeline?.context?.ripSuccessful || 0) === 1
|| jobRow?.raw_path
|| pipeline?.context?.rawPath
|| jobRow?.makemkvInfo?.rawPath
|| String(jobRow?.makemkvInfo?.status || '').trim().toUpperCase() === 'SUCCESS'
);
const selectedMetadata = pipeline?.context?.selectedMetadata || null;
const mediaInfoReview = pipeline?.context?.mediaInfoReview || null;
const playlistAnalysis = pipeline?.context?.playlistAnalysis || null;
@@ -1789,6 +1805,11 @@ export default function PipelineStatusCard({
&& retryJobId
&& pipeline?.context?.canRestartEncodeFromLastSettings
);
const canCancelReview = Boolean(
!running
&& retryJobId
&& (state === 'READY_TO_ENCODE' || state === 'WAITING_FOR_USER_DECISION')
);
const canRestartReviewFromRaw = Boolean(
retryJobId
&& !running
@@ -2852,7 +2873,7 @@ export default function PipelineStatusCard({
/>
)}
{(state === 'METADATA_SELECTION' || state === 'WAITING_FOR_USER_DECISION')
{(state === 'METADATA_SELECTION' || state === 'WAITING_FOR_USER_DECISION' || isOrphanCancelled)
&& retryJobId
&& typeof onOpenMetadata === 'function'
&& !(jobMediaProfile === 'converter' && !selectedMetadata?.imdbId) ? (
@@ -2882,11 +2903,12 @@ export default function PipelineStatusCard({
&& state !== 'DISC_DETECTED'
&& retryJobId
&& typeof onReassignOmdb === 'function'
&& !isOrphanCancelled
&& !(jobMediaProfile === 'converter' && state === 'READY_TO_START' && !selectedMetadata?.imdbId) ? (
<Button
label="OMDb neu zuordnen"
label="Metadaten neu zuweisen"
icon="pi pi-search"
severity="secondary"
severity="info"
size="small"
onClick={() => onReassignOmdb?.(retryJobId)}
loading={busy}
@@ -2986,7 +3008,7 @@ export default function PipelineStatusCard({
/>
) : null}
{running && (
{(running || canCancelReview) && (
<Button
label="Abbrechen"
icon="pi pi-stop"
@@ -3041,7 +3063,7 @@ export default function PipelineStatusCard({
)
) : null}
{(state === 'ERROR' || state === 'CANCELLED') && retryJobId && (
{(state === 'ERROR' || state === 'CANCELLED') && retryJobId && !isOrphanCancelled && !ripCompleted && (
<Button
label="Retry Rippen"
icon="pi pi-refresh"
@@ -3051,7 +3073,7 @@ export default function PipelineStatusCard({
/>
)}
{(state === 'ERROR' || state === 'CANCELLED') ? (
{(state === 'ERROR' || state === 'CANCELLED') && !isOrphanCancelled && !ripCompleted ? (
<Button
label="Disk-Analyse neu starten"
icon="pi pi-search"
@@ -3062,7 +3084,7 @@ export default function PipelineStatusCard({
) : null}
</>
)}
{retryJobId && typeof onDeleteJob === 'function' ? (
{!running && retryJobId && typeof onDeleteJob === 'function' ? (
<Button
label="Job löschen"
icon="pi pi-trash"