Add metadata management for shows: implement metadata retrieval, application, and updates in the API and UI. Enhance Show and ShowDto models to include metadata fields, and update the database schema accordingly. Introduce new endpoints for metadata operations and integrate metadata display in the ShowDetail component.
This commit is contained in:
@@ -45,7 +45,17 @@ public sealed class GetShowQueryHandler(IAppDbContext dbContext)
|
||||
.ToList();
|
||||
|
||||
return Result.Success(
|
||||
new ShowDto(show.Id, show.Name, show.Kind, show.Description, episodeDtos)
|
||||
new ShowDto(
|
||||
show.Id,
|
||||
show.Name,
|
||||
show.Kind,
|
||||
show.Description,
|
||||
show.MetadataProvider,
|
||||
show.MetadataExternalId,
|
||||
show.Year,
|
||||
show.PosterPath is not null,
|
||||
episodeDtos
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user