mirror of
https://github.com/MrSleeps/jellyfin-scene-search.git
synced 2026-11-19 00:03:36 +00:00
Show incremental caption search updates
This commit is contained in:
@@ -408,7 +408,8 @@
|
||||
$('captionDetail').textContent =
|
||||
(s.model || '') +
|
||||
(s.route ? ', ' + s.route : '') +
|
||||
', ' + (s.failed || 0) + ' failed';
|
||||
', ' + (s.failed || 0) + ' failed' +
|
||||
', search updated: ' + (s.meili_documents_updated || 0);
|
||||
}
|
||||
} else if (s.stage === 'failed') {
|
||||
$('captionNow').disabled = false;
|
||||
@@ -427,7 +428,12 @@
|
||||
$('captionStatus').textContent =
|
||||
'Complete: ' + (s.frames_completed || 0) + ' saved, ' + (s.failed || 0) + ' failed';
|
||||
$('captionDetail').textContent =
|
||||
(s.retained || 0) + ' existing captions retained';
|
||||
(s.retained || 0) + ' existing captions retained, ' +
|
||||
(s.meili_documents_updated || 0) + ' search documents updated' +
|
||||
((s.meili_sync_pending || 0)
|
||||
? ', ' + s.meili_sync_pending + ' search updates still pending'
|
||||
: '') +
|
||||
(s.meili_sync_error ? ' · last search sync error: ' + s.meili_sync_error : '');
|
||||
} else if (s.stage === 'stopped') {
|
||||
$('captionNow').disabled = false;
|
||||
$('captionNow').textContent = 'Start / resume captioning';
|
||||
@@ -436,8 +442,12 @@
|
||||
$('captionStatus').className = 'status muted';
|
||||
$('captionStatus').textContent = 'Stopped';
|
||||
$('captionDetail').textContent =
|
||||
(s.frames_completed || 0) +
|
||||
' captions saved. Start / resume continues the remaining frames; search updates after a later completed run.';
|
||||
(s.frames_completed || 0) + ' captions saved, ' +
|
||||
(s.meili_documents_updated || 0) + ' search documents updated' +
|
||||
((s.meili_sync_pending || 0)
|
||||
? ', ' + s.meili_sync_pending + ' search updates still pending'
|
||||
: '') +
|
||||
'. Start / resume continues the remaining frames.';
|
||||
} else {
|
||||
$('captionNow').disabled = false;
|
||||
$('captionNow').textContent = 'Start / resume captioning';
|
||||
|
||||
Reference in New Issue
Block a user