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:
ta264
2019-06-08 20:13:58 +01:00
committed by Qstick
parent 8fe8aec97c
commit 166fc90454
95 changed files with 1590 additions and 723 deletions
@@ -7,6 +7,7 @@ using NzbDrone.Core.Notifications.Synology;
using NzbDrone.Core.Test.Framework;
using NzbDrone.Core.Music;
using NzbDrone.Test.Common;
using System.IO;
namespace NzbDrone.Core.Test.NotificationTests
{
@@ -15,13 +16,14 @@ namespace NzbDrone.Core.Test.NotificationTests
{
private Artist _artist;
private AlbumDownloadMessage _upgrade;
private string rootPath = @"C:\Test\".AsOsAgnostic();
[SetUp]
public void SetUp()
{
_artist = new Artist()
{
Path = @"C:\Test\".AsOsAgnostic()
Path = rootPath,
};
_upgrade = new AlbumDownloadMessage()
@@ -32,7 +34,7 @@ namespace NzbDrone.Core.Test.NotificationTests
{
new TrackFile
{
RelativePath = "file1.S01E01E02.mkv"
Path = Path.Combine(rootPath, "file1.S01E01E02.mkv")
}
},
@@ -41,11 +43,11 @@ namespace NzbDrone.Core.Test.NotificationTests
{
new TrackFile
{
RelativePath = "file1.S01E01.mkv"
Path = Path.Combine(rootPath, "file1.S01E01.mkv")
},
new TrackFile
{
RelativePath = "file1.S01E02.mkv"
Path = Path.Combine(rootPath, "file1.S01E02.mkv")
}
}
};