fix(archive): scans leave sequences waiting for a folder alone and build server images
A sequence created through POST /api/v1/sequences keeps an empty folder until its first frame. Scans no longer adopt loose photos at the archive root under its id, and a rebuild, the orphans report and fix, verify and the scan follow-ups no longer treat it as the root sequence, as missing or as a sequence to analyse. All of them use ArchiveIngest.AwaitsFolder. On the server (ArchiveServiceOptions.ImagesAfterScan), a scan that indexes sequences without thumbnails or proxies queues background Thumbs and Proxies passes for them, as an upload does. A scan that finds photos added or removed clears ThumbsBuilt and ProxiesBuilt together with AnalyzedLight. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
10 files changed
+290
-29
No files matched your search
@@ -8,8 +8,9 @@ namespace Titano.Server.Storage;
|
||||
/// <summary>
|
||||
/// The archive engine behind the server (BRIEF §7, §14.4): ingest of verified uploads, lookup of proxies and
|
||||
/// thumbnails, its job handlers (scan, rebuild, verify, import, thumbnails, proxies, maintenance) and the periodic
|
||||
/// incremental scan (<see cref="ArchivePolling"/>). Decoding is managed only (BRIEF §4.2). The daily backup of an
|
||||
/// SQLite index runs with it (<see cref="DatabaseBackupService"/>).
|
||||
/// incremental scan (<see cref="ArchivePolling"/>); a scan queues thumbnails and proxies of what it indexes, as an upload
|
||||
/// does. Decoding is managed only (BRIEF §4.2). The daily backup of an SQLite index runs with it
|
||||
/// (<see cref="DatabaseBackupService"/>).
|
||||
/// </summary>
|
||||
public static class ArchiveModule
|
||||
{
|
||||
@@ -19,7 +20,7 @@ public static class ArchiveModule
|
||||
public static void Register(IServiceCollection services)
|
||||
{
|
||||
services.AddSingleton(sp => new ArchiveService(sp.GetRequiredService<TitanoDatabase>(),
|
||||
new ArchiveServiceOptions { Decoder = DecoderFactory.CreateServer(), Owner = Owner }));
|
||||
new ArchiveServiceOptions { Decoder = DecoderFactory.CreateServer(), Owner = Owner, ImagesAfterScan = true }));
|
||||
services.AddSingleton<IArchiveIngest>(sp => sp.GetRequiredService<ArchiveService>().Ingest);
|
||||
services.AddSingleton<IJobHandlerProvider>(sp => sp.GetRequiredService<ArchiveService>());
|
||||
services.AddSingleton<IFrameAssetLocator, ArchiveAssetLocator>();
|
||||
|
||||
Reference in new issue
Block a user