mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-25 22:36:59 -04:00
New: Only scan files that are new or updated (#760)
* New: Only scan files that are new or updated Pass through filter correctly Add more tests Add tests for migration 30 * Fix windows disk provider * Don't publish deleted event for unmapped file * Fix test on windows
This commit is contained in:
@@ -18,6 +18,7 @@ namespace NzbDrone.Core.Test.MediaFiles
|
||||
{
|
||||
private TrackFile _trackFile;
|
||||
private LocalTrack _localTrack;
|
||||
private string rootPath = @"C:\Test\Music\Artist".AsOsAgnostic();
|
||||
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
@@ -25,7 +26,7 @@ namespace NzbDrone.Core.Test.MediaFiles
|
||||
_localTrack = new LocalTrack();
|
||||
_localTrack.Artist = new Artist
|
||||
{
|
||||
Path = @"C:\Test\Music\Artist".AsOsAgnostic()
|
||||
Path = rootPath
|
||||
};
|
||||
|
||||
_trackFile = Builder<TrackFile>
|
||||
@@ -55,7 +56,7 @@ namespace NzbDrone.Core.Test.MediaFiles
|
||||
new TrackFile
|
||||
{
|
||||
Id = 1,
|
||||
RelativePath = @"Season 01\30.rock.s01e01.avi",
|
||||
Path = Path.Combine(rootPath, @"Season 01\30.rock.s01e01.avi"),
|
||||
}))
|
||||
.Build()
|
||||
.ToList();
|
||||
@@ -70,7 +71,7 @@ namespace NzbDrone.Core.Test.MediaFiles
|
||||
new TrackFile
|
||||
{
|
||||
Id = 1,
|
||||
RelativePath = @"Season 01\30.rock.s01e01.avi",
|
||||
Path = Path.Combine(rootPath, @"Season 01\30.rock.s01e01.avi"),
|
||||
}))
|
||||
.Build()
|
||||
.ToList();
|
||||
@@ -84,14 +85,14 @@ namespace NzbDrone.Core.Test.MediaFiles
|
||||
new TrackFile
|
||||
{
|
||||
Id = 1,
|
||||
RelativePath = @"Season 01\30.rock.s01e01.avi",
|
||||
Path = Path.Combine(rootPath, @"Season 01\30.rock.s01e01.avi"),
|
||||
}))
|
||||
.TheNext(1)
|
||||
.With(e => e.TrackFile = new LazyLoaded<TrackFile>(
|
||||
new TrackFile
|
||||
{
|
||||
Id = 2,
|
||||
RelativePath = @"Season 01\30.rock.s01e02.avi",
|
||||
Path = Path.Combine(rootPath, @"Season 01\30.rock.s01e02.avi"),
|
||||
}))
|
||||
.Build()
|
||||
.ToList();
|
||||
|
||||
Reference in New Issue
Block a user