rework media layout (#22)
* replace media items tables with card grids * style cleanup * add basic paging * sort and page in the db * optimize sql for movies * support movie posters * resize movie posters and store in cache with channel logos * fix bug preventing folders with more than 50 chars as local media sources * support tv posters
This commit is contained in:
@@ -22,8 +22,6 @@ namespace ErsatzTV.Infrastructure.Migrations
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.ToTable("GenericIntegerIds");
|
||||
});
|
||||
|
||||
modelBuilder.Entity(
|
||||
@@ -41,8 +39,23 @@ namespace ErsatzTV.Infrastructure.Migrations
|
||||
|
||||
b.Property<string>("Name")
|
||||
.HasColumnType("TEXT");
|
||||
});
|
||||
|
||||
b.ToTable("MediaCollectionSummaries");
|
||||
modelBuilder.Entity(
|
||||
"ErsatzTV.Core.AggregateModels.MediaItemSummary",
|
||||
b =>
|
||||
{
|
||||
b.Property<string>("Poster")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("SortTitle")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("Subtitle")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.HasColumnType("TEXT");
|
||||
});
|
||||
|
||||
modelBuilder.Entity(
|
||||
@@ -205,6 +218,9 @@ namespace ErsatzTV.Infrastructure.Migrations
|
||||
b.Property<string>("Path")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("Poster")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("MediaSourceId");
|
||||
@@ -631,6 +647,9 @@ namespace ErsatzTV.Infrastructure.Migrations
|
||||
b1.Property<int?>("SeasonNumber")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b1.Property<string>("SortTitle")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b1.Property<string>("Subtitle")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user