0.10.2-23 Fix
This commit is contained in:
@@ -596,9 +596,9 @@ export default function JobDetailDialog({
|
|||||||
|
|
||||||
<div className="job-head-row">
|
<div className="job-head-row">
|
||||||
{job.poster_url && job.poster_url !== 'N/A' ? (
|
{job.poster_url && job.poster_url !== 'N/A' ? (
|
||||||
<img src={job.poster_url} alt={job.title || 'Poster'} className="poster-large" />
|
<img src={job.poster_url} alt={job.title || 'Poster'} className={isCd || isAudiobook ? 'poster-large-audio' : 'poster-large'} />
|
||||||
) : (
|
) : (
|
||||||
<div className="poster-large-audio poster-fallback">{isCd || isAudiobook ? 'Kein Cover' : 'Kein Poster'}</div>
|
<div className={`${isCd || isAudiobook ? 'poster-large-audio' : 'poster-large'} poster-fallback`}>{isCd || isAudiobook ? 'Kein Cover' : 'Kein Poster'}</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<div className="job-film-info-grid">
|
<div className="job-film-info-grid">
|
||||||
@@ -814,42 +814,60 @@ export default function JobDetailDialog({
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{!isCd && (hasConfiguredSelection || encodePlanUserPreset || job.encodePlan?.minLengthMinutes != null || job.encodePlan?.playlistRecommendation || job.handbrakeInfo?.preEncodeScripts?.configured > 0 || job.handbrakeInfo?.postEncodeScripts?.configured > 0) ? (
|
{!isCd && !isAudiobook && (hasConfiguredSelection || encodePlanUserPreset || job.encodePlan?.minLengthMinutes != null || Array.isArray(job.encodePlan?.titles)) ? (
|
||||||
<section className="job-meta-block job-meta-block-full">
|
<section className="job-meta-block job-meta-block-full">
|
||||||
<h4>Encode-Konfiguration</h4>
|
<h4>Encode-Konfiguration</h4>
|
||||||
|
{/* Zeile 1: Preset + Mindestlaufzeit */}
|
||||||
<div className="job-meta-grid job-meta-grid-compact">
|
<div className="job-meta-grid job-meta-grid-compact">
|
||||||
{job.encodePlan?.minLengthMinutes != null && !isAudiobook ? (
|
{encodePlanUserPreset ? (
|
||||||
|
<div>
|
||||||
|
<strong>Preset:</strong> {encodePlanUserPreset.name || '-'}
|
||||||
|
</div>
|
||||||
|
) : null}
|
||||||
|
{job.encodePlan?.minLengthMinutes != null ? (
|
||||||
<div>
|
<div>
|
||||||
<strong>Mindestlaufzeit:</strong> {job.encodePlan.minLengthMinutes} Min.
|
<strong>Mindestlaufzeit:</strong> {job.encodePlan.minLengthMinutes} Min.
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
{job.encodePlan?.playlistRecommendation && !isAudiobook ? (
|
|
||||||
<div>
|
|
||||||
<strong>Playlist-Auswahl:</strong>{' '}
|
|
||||||
{job.encodePlan.playlistRecommendation.playlistFile || '-'}
|
|
||||||
{job.encodePlan.playlistRecommendation.reason ? ` — ${job.encodePlan.playlistRecommendation.reason}` : ''}
|
|
||||||
</div>
|
|
||||||
) : null}
|
|
||||||
{(hasConfiguredSelection || encodePlanUserPreset) && !isAudiobook ? (
|
|
||||||
<>
|
|
||||||
<div>
|
|
||||||
<strong>Pre-Skripte:</strong> {configuredSelection.preScripts.length > 0 ? configuredSelection.preScripts.join(', ') : (configuredSelection.preChains.length > 0 ? configuredSelection.preChains.join(', ') : '-')}
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<strong>Post-Skripte:</strong> {configuredSelection.postScripts.length > 0 ? configuredSelection.postScripts.join(', ') : (configuredSelection.postChains.length > 0 ? configuredSelection.postChains.join(', ') : '-')}
|
|
||||||
</div>
|
|
||||||
{encodePlanUserPreset ? (
|
|
||||||
<div className="job-meta-col-span-2">
|
|
||||||
<strong>Preset:</strong> {encodePlanUserPreset.name || '-'}{encodePlanUserPreset.handbrakePreset ? ` · ${encodePlanUserPreset.handbrakePreset}` : ''}{encodePlanUserPreset.extraArgs ? ` · ${encodePlanUserPreset.extraArgs}` : ''}
|
|
||||||
</div>
|
|
||||||
) : null}
|
|
||||||
</>
|
|
||||||
) : null}
|
|
||||||
</div>
|
</div>
|
||||||
{!isAudiobook && (job.handbrakeInfo?.preEncodeScripts?.configured > 0 || job.handbrakeInfo?.postEncodeScripts?.configured > 0) ? (
|
{/* Zeile 2: Skripte */}
|
||||||
<div className="script-results-grid">
|
{hasConfiguredSelection ? (
|
||||||
<ScriptSummarySection title="Pre-Encode" summary={job.handbrakeInfo?.preEncodeScripts} />
|
<div className="job-meta-grid job-meta-grid-compact">
|
||||||
<ScriptSummarySection title="Post-Encode" summary={job.handbrakeInfo?.postEncodeScripts} />
|
<div>
|
||||||
|
<strong>Pre-Skripte:</strong>{' '}
|
||||||
|
{configuredSelection.preScripts.length > 0
|
||||||
|
? configuredSelection.preScripts.join(', ')
|
||||||
|
: configuredSelection.preChains.length > 0
|
||||||
|
? configuredSelection.preChains.join(', ')
|
||||||
|
: '-'}
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<strong>Post-Skripte:</strong>{' '}
|
||||||
|
{configuredSelection.postScripts.length > 0
|
||||||
|
? configuredSelection.postScripts.join(', ')
|
||||||
|
: configuredSelection.postChains.length > 0
|
||||||
|
? configuredSelection.postChains.join(', ')
|
||||||
|
: '-'}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
) : null}
|
||||||
|
{/* Titel-Liste */}
|
||||||
|
{Array.isArray(job.encodePlan?.titles) && job.encodePlan.titles.length > 0 ? (
|
||||||
|
<div className="job-titles-list">
|
||||||
|
{job.encodePlan.titles.map((t) => {
|
||||||
|
const isSelected = t.id === job.encodePlan.encodeInputTitleId || t.selectedForEncode;
|
||||||
|
const sizeMb = t.sizeBytes > 0 ? `${(t.sizeBytes / 1024 / 1024).toFixed(0)} MB` : null;
|
||||||
|
return (
|
||||||
|
<div key={t.id} className={`job-title-row${isSelected ? ' job-title-row-selected' : ''}`}>
|
||||||
|
<span className="job-title-id">#{t.id}</span>
|
||||||
|
<span className="job-title-name">{t.fileName || '-'}</span>
|
||||||
|
<span className="job-title-duration">{t.durationMinutes != null ? `${t.durationMinutes} Min.` : '-'}</span>
|
||||||
|
{sizeMb ? <span className="job-title-size">{sizeMb}</span> : null}
|
||||||
|
{t.playlistFile ? <span className="job-title-playlist">{t.playlistFile}</span> : null}
|
||||||
|
{isSelected ? <span className="job-title-selected-badge">gewählt</span> : null}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
})}
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
</section>
|
</section>
|
||||||
@@ -868,7 +886,7 @@ export default function JobDetailDialog({
|
|||||||
|
|
||||||
{!isCd && !isAudiobook && job.encodePlan ? (
|
{!isCd && !isAudiobook && job.encodePlan ? (
|
||||||
<section className="job-meta-block job-meta-block-full">
|
<section className="job-meta-block job-meta-block-full">
|
||||||
<h4>Titel & Spurauswahl</h4>
|
<h4>Spurauswahl</h4>
|
||||||
<MediaInfoReviewPanel
|
<MediaInfoReviewPanel
|
||||||
review={job.encodePlan}
|
review={job.encodePlan}
|
||||||
commandOutputPath={job.output_path || null}
|
commandOutputPath={job.output_path || null}
|
||||||
|
|||||||
@@ -945,10 +945,10 @@ export default function PipelineStatusCard({
|
|||||||
<img
|
<img
|
||||||
src={selectedMetadata.poster}
|
src={selectedMetadata.poster}
|
||||||
alt={selectedMetadata.title || 'Poster'}
|
alt={selectedMetadata.title || 'Poster'}
|
||||||
className="poster-large"
|
className={jobMediaProfile === 'cd' || jobMediaProfile === 'audiobook' ? 'poster-large-audio' : 'poster-large'}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<div className="poster-large poster-fallback">Kein Poster</div>
|
<div className={`${jobMediaProfile === 'cd' || jobMediaProfile === 'audiobook' ? 'poster-large-audio' : 'poster-large'} poster-fallback`}>Kein {jobMediaProfile === 'cd' || jobMediaProfile === 'audiobook' ? 'Cover' : 'Poster'}</div>
|
||||||
)}
|
)}
|
||||||
<div className="device-meta">
|
<div className="device-meta">
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -2816,6 +2816,7 @@ body {
|
|||||||
|
|
||||||
.poster-large-audio {
|
.poster-large-audio {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
aspect-ratio: 1;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
border: 1px solid #cba266;
|
border: 1px solid #cba266;
|
||||||
|
|||||||
Reference in New Issue
Block a user