mirror of
https://github.com/MrSleeps/jellyfin-scene-search.git
synced 2026-11-19 00:03:36 +00:00
Caption chronological 30-second frame windows
This commit is contained in:
@@ -342,7 +342,8 @@
|
||||
progressText.textContent = percent.toFixed(1).replace('.0', '') + '%';
|
||||
progressFrames.textContent =
|
||||
(status.frames_completed || 0) + ' / ' +
|
||||
(status.frames_total || 0) + ' frames';
|
||||
(status.frames_total || 0) + ' ' +
|
||||
(status.work_unit === 'windows' ? 'windows' : 'frames');
|
||||
|
||||
if (status.running) {
|
||||
var starting = status.stage === 'starting';
|
||||
@@ -374,9 +375,12 @@
|
||||
(status.title || '') +
|
||||
(status.timestamp_ms != null ? ' at ' + formatTs(status.timestamp_ms) : '') +
|
||||
' · ' + (status.frames_completed || 0) + '/' +
|
||||
(status.frames_total || 0) + ' frames saved.';
|
||||
(status.frames_total || 0) + ' ' +
|
||||
(status.work_unit === 'windows' ? 'windows' : 'frames') +
|
||||
' saved.';
|
||||
} else if (status.pause_requested) {
|
||||
container.textContent = 'Pause requested; finishing the current frame.';
|
||||
container.textContent = 'Pause requested; finishing the current ' +
|
||||
(status.work_unit === 'windows' ? 'window.' : 'frame.');
|
||||
detail.textContent = status.title || '';
|
||||
} else if (status.stage === 'routing') {
|
||||
container.textContent = 'Routing frames to caption models.';
|
||||
|
||||
@@ -222,6 +222,15 @@ public sealed class SceneSearchCaptionStatus
|
||||
[JsonPropertyName("route")]
|
||||
public string? Route { get; set; }
|
||||
|
||||
[JsonPropertyName("work_unit")]
|
||||
public string? WorkUnit { get; set; }
|
||||
|
||||
[JsonPropertyName("window_start_ms")]
|
||||
public long? WindowStartMs { get; set; }
|
||||
|
||||
[JsonPropertyName("window_end_ms")]
|
||||
public long? WindowEndMs { get; set; }
|
||||
|
||||
[JsonPropertyName("preparing")]
|
||||
public string? Preparing { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user