|
|
|
@ -30,7 +30,8 @@ namespace ErsatzTV.Core.Tests.Metadata |
|
|
|
source.LeftToSeq().Should().BeEquivalentTo(movieFileName); |
|
|
|
source.LeftToSeq().Should().BeEquivalentTo(movieFileName); |
|
|
|
itemScanningPlans.Should().BeEquivalentTo( |
|
|
|
itemScanningPlans.Should().BeEquivalentTo( |
|
|
|
new ItemScanningPlan(movieFileName, ScanningAction.Statistics), |
|
|
|
new ItemScanningPlan(movieFileName, ScanningAction.Statistics), |
|
|
|
new ItemScanningPlan(movieFileName, ScanningAction.FallbackMetadata)); |
|
|
|
new ItemScanningPlan(movieFileName, ScanningAction.FallbackMetadata), |
|
|
|
|
|
|
|
new ItemScanningPlan(movieFileName, ScanningAction.Collections)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
@ -54,7 +55,8 @@ namespace ErsatzTV.Core.Tests.Metadata |
|
|
|
source.LeftToSeq().Should().BeEquivalentTo(movieFileName); |
|
|
|
source.LeftToSeq().Should().BeEquivalentTo(movieFileName); |
|
|
|
itemScanningPlans.Should().BeEquivalentTo( |
|
|
|
itemScanningPlans.Should().BeEquivalentTo( |
|
|
|
new ItemScanningPlan(movieFileName, ScanningAction.Statistics), |
|
|
|
new ItemScanningPlan(movieFileName, ScanningAction.Statistics), |
|
|
|
new ItemScanningPlan(nfoFileName, ScanningAction.SidecarMetadata)); |
|
|
|
new ItemScanningPlan(nfoFileName, ScanningAction.SidecarMetadata), |
|
|
|
|
|
|
|
new ItemScanningPlan(movieFileName, ScanningAction.Collections)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
@ -82,7 +84,8 @@ namespace ErsatzTV.Core.Tests.Metadata |
|
|
|
itemScanningPlans.Should().BeEquivalentTo( |
|
|
|
itemScanningPlans.Should().BeEquivalentTo( |
|
|
|
new ItemScanningPlan(movieFileName, ScanningAction.Statistics), |
|
|
|
new ItemScanningPlan(movieFileName, ScanningAction.Statistics), |
|
|
|
new ItemScanningPlan(movieFileName, ScanningAction.FallbackMetadata), |
|
|
|
new ItemScanningPlan(movieFileName, ScanningAction.FallbackMetadata), |
|
|
|
new ItemScanningPlan(posterFileName, ScanningAction.Poster)); |
|
|
|
new ItemScanningPlan(posterFileName, ScanningAction.Poster), |
|
|
|
|
|
|
|
new ItemScanningPlan(movieFileName, ScanningAction.Collections)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
@ -113,7 +116,8 @@ namespace ErsatzTV.Core.Tests.Metadata |
|
|
|
itemScanningPlans.Should().BeEquivalentTo( |
|
|
|
itemScanningPlans.Should().BeEquivalentTo( |
|
|
|
new ItemScanningPlan(movieFileName, ScanningAction.Statistics), |
|
|
|
new ItemScanningPlan(movieFileName, ScanningAction.Statistics), |
|
|
|
new ItemScanningPlan(nfoFileName, ScanningAction.SidecarMetadata), |
|
|
|
new ItemScanningPlan(nfoFileName, ScanningAction.SidecarMetadata), |
|
|
|
new ItemScanningPlan(posterFileName, ScanningAction.Poster)); |
|
|
|
new ItemScanningPlan(posterFileName, ScanningAction.Poster), |
|
|
|
|
|
|
|
new ItemScanningPlan(movieFileName, ScanningAction.Collections)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// TODO: mtime should affect this
|
|
|
|
// TODO: mtime should affect this
|
|
|
|
@ -141,8 +145,9 @@ namespace ErsatzTV.Core.Tests.Metadata |
|
|
|
(Either<string, MediaItem> source, List<ItemScanningPlan> itemScanningPlans) = result.Head(); |
|
|
|
(Either<string, MediaItem> source, List<ItemScanningPlan> itemScanningPlans) = result.Head(); |
|
|
|
source.IsRight.Should().BeTrue(); |
|
|
|
source.IsRight.Should().BeTrue(); |
|
|
|
source.RightToSeq().Should().BeEquivalentTo(movieMediaItem); |
|
|
|
source.RightToSeq().Should().BeEquivalentTo(movieMediaItem); |
|
|
|
itemScanningPlans.Should() |
|
|
|
itemScanningPlans.Should().BeEquivalentTo( |
|
|
|
.BeEquivalentTo(new ItemScanningPlan(nfoFileName, ScanningAction.SidecarMetadata)); |
|
|
|
new ItemScanningPlan(nfoFileName, ScanningAction.SidecarMetadata), |
|
|
|
|
|
|
|
new ItemScanningPlan(movieMediaItem.Path, ScanningAction.Collections)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
@ -206,7 +211,8 @@ namespace ErsatzTV.Core.Tests.Metadata |
|
|
|
source.RightToSeq().Should().BeEquivalentTo(movieMediaItem); |
|
|
|
source.RightToSeq().Should().BeEquivalentTo(movieMediaItem); |
|
|
|
itemScanningPlans.Should().BeEquivalentTo( |
|
|
|
itemScanningPlans.Should().BeEquivalentTo( |
|
|
|
new ItemScanningPlan(nfoFileName, ScanningAction.SidecarMetadata), |
|
|
|
new ItemScanningPlan(nfoFileName, ScanningAction.SidecarMetadata), |
|
|
|
new ItemScanningPlan(posterFileName, ScanningAction.Poster)); |
|
|
|
new ItemScanningPlan(posterFileName, ScanningAction.Poster), |
|
|
|
|
|
|
|
new ItemScanningPlan(movieMediaItem.Path, ScanningAction.Collections)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|