rewrite local media scanner (#25)
* spike new scanner * add existing items to new scanner * add collection refresh actions * add tv show metadata and posters * update metadata and posters when nfo/poster files are updated * add "remove" action, test for all supported file extensions * update statistics when primary video file is updated * reflect that collections are "sourced" from nfo * implement most scanning actions * cleanup * fix startup * cross-platform scanner tests
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ErsatzTV.Infrastructure.Migrations
|
||||
{
|
||||
public partial class MetadataOptimizations : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
"Metadata_LastWriteTime",
|
||||
"MediaItems",
|
||||
"TEXT",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
"Metadata_Source",
|
||||
"MediaItems",
|
||||
"INTEGER",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
"PosterLastWriteTime",
|
||||
"MediaItems",
|
||||
"TEXT",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
"Metadata_LastWriteTime",
|
||||
"MediaItems");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
"Metadata_Source",
|
||||
"MediaItems");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
"PosterLastWriteTime",
|
||||
"MediaItems");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user