Refactor manual inbox handling: update ImportManualInboxCommand to accept ManualImportItem objects, enhancing file import functionality with explicit season and episode numbers. Implement CleanupManualLeftoversAsync in IMediaStorage to remove unnecessary files after import. Update frontend components to support new import structure and improve user experience in manual media management.
This commit is contained in:
@@ -163,7 +163,7 @@ public static class MediaEndpoints
|
||||
)
|
||||
{
|
||||
var result = await sender.Send(
|
||||
new ImportManualInboxCommand(body.RelativePaths, body.ShowId),
|
||||
new ImportManualInboxCommand(body.Items, body.ShowId),
|
||||
cancellationToken
|
||||
);
|
||||
return result.ToHttpResult();
|
||||
@@ -222,4 +222,4 @@ public static class MediaEndpoints
|
||||
|
||||
public sealed record UploadMediaResponse(Guid Id);
|
||||
|
||||
public sealed record ImportManualInboxBody(IReadOnlyList<string> RelativePaths, Guid ShowId);
|
||||
public sealed record ImportManualInboxBody(IReadOnlyList<ManualImportItem> Items, Guid ShowId);
|
||||
|
||||
Reference in New Issue
Block a user