* support external subtitles in local movie libraries * code cleanup * simplify subtitle updating * skip external subtitles from media servers * fix plex subtitles
20 lines
526 B
C#
20 lines
526 B
C#
using ErsatzTV.Core.Domain;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
|
|
namespace ErsatzTV.Infrastructure.Data.Configurations;
|
|
|
|
public class SubtitleConfiguration : IEntityTypeConfiguration<Subtitle>
|
|
{
|
|
public void Configure(EntityTypeBuilder<Subtitle> builder)
|
|
{
|
|
builder.ToTable("Subtitle");
|
|
|
|
builder.Property(s => s.IsExtracted)
|
|
.HasDefaultValue(false);
|
|
|
|
builder.Property(s => s.SDH)
|
|
.HasDefaultValue(false);
|
|
}
|
|
}
|