Updated various parts of scanning and ingestion, either for bug fixes, or for enhancements.
All checks were successful
ci / build-test (push) Successful in 2m22s
ci / publish-image (push) Has been skipped

This commit is contained in:
2026-03-01 22:07:20 -05:00
parent 704a6fc433
commit 83655f13e9
20 changed files with 555 additions and 90 deletions

View File

@@ -5,10 +5,10 @@ namespace JSMR.Application.Scanning.Contracts;
public class DLSiteWork
{
//public DLSiteWorkType Type { get; set; }
public DLSiteWorkCategory Category { get; set; }
//public DLSiteWorkCategory Category { get; set; }
public required string ProductName { get; set; }
public required string ProductId { get; set; }
public DateOnly? AnnouncedDate { get; set; }
//public DateOnly? AnnouncedDate { get; set; }
public DateOnly? ExpectedDate { get; set; }
public DateOnly? SalesDate { get; set; }
public int Downloads { get; set; }

View File

@@ -36,7 +36,7 @@ public sealed record VoiceWorkIngest
MakerId = work.MakerId,
MakerName = work.Maker,
ProductId = work.ProductId,
Title = work.ProductName,
Title = details?.Title ?? work.ProductName,
Description = work.Description ?? string.Empty,
Tags = work.Tags,
Creators = work.Creators,

View File

@@ -48,6 +48,9 @@ public sealed class ScanVoiceWorksHandler(
await searchUpdater.UpdateAsync(voiceWorkIds, cancellationToken);
return new();
return new()
{
Results = upsertResults
};
}
}

View File

@@ -1,7 +1,10 @@
namespace JSMR.Application.Scanning;
using JSMR.Application.Scanning.Ports;
namespace JSMR.Application.Scanning;
public sealed class ScanVoiceWorksResponse
{
public int Inserted { get; init; }
public int Updated { get; init; }
public VoiceWorkUpsertResult[] Results { get; init; } = [];
}