Updated various parts of scanning and ingestion, either for bug fixes, or for enhancements.
This commit is contained in:
@@ -5,6 +5,7 @@ namespace JSMR.Application.Integrations.DLSite.Models;
|
||||
|
||||
public class VoiceWorkDetails
|
||||
{
|
||||
public string? Title { get; init; }
|
||||
public VoiceWorkSeries? Series { get; init; }
|
||||
public VoiceWorkTranslation? Translation { get; init; }
|
||||
public AgeRating AgeRating { get; init; }
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -48,6 +48,9 @@ public sealed class ScanVoiceWorksHandler(
|
||||
|
||||
await searchUpdater.UpdateAsync(voiceWorkIds, cancellationToken);
|
||||
|
||||
return new();
|
||||
return new()
|
||||
{
|
||||
Results = upsertResults
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -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; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user