diff --git a/NzbDrone.Core.Test/ProviderTests/DiskScanProviderTests/ImportFileFixture.cs b/NzbDrone.Core.Test/ProviderTests/DiskScanProviderTests/ImportFileFixture.cs index 90f18c388..1e81eaac0 100644 --- a/NzbDrone.Core.Test/ProviderTests/DiskScanProviderTests/ImportFileFixture.cs +++ b/NzbDrone.Core.Test/ProviderTests/DiskScanProviderTests/ImportFileFixture.cs @@ -27,13 +27,13 @@ namespace NzbDrone.Core.Test.ProviderTests.DiskScanProviderTests new object[] { QualityTypes.HDTV, false } }; - private readonly long SIZE = 50.Megabytes(); + private readonly long SIZE = 80.Megabytes(); - public void With50MBFile() + public void With80MBFile() { Mocker.GetMock() .Setup(d => d.GetSize(It.IsAny())) - .Returns(50.Megabytes()); + .Returns(80.Megabytes()); } [Test] @@ -45,7 +45,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DiskScanProviderTests var fakeEpisode = Builder.CreateNew().Build(); //Mocks - With50MBFile(); + With80MBFile(); Mocker.GetMock() .Setup(p => p.Exists(It.IsAny())) @@ -76,7 +76,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DiskScanProviderTests ).Build(); - With50MBFile(); + With80MBFile(); Mocker.GetMock() .Setup(e => e.GetEpisodesByParseResult(It.IsAny())).Returns(new List { fakeEpisode }); @@ -102,7 +102,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DiskScanProviderTests .Build(); //Mocks - With50MBFile(); + With80MBFile(); Mocker.GetMock() .Setup(p => p.Exists(It.IsAny())) @@ -128,7 +128,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DiskScanProviderTests Mocker.GetMock() .Setup(p => p.Exists(It.IsAny())).Returns(false); - With50MBFile(); + With80MBFile(); //Act var result = Mocker.Resolve().ImportFile(fakeSeries, fileName); @@ -150,7 +150,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DiskScanProviderTests .Setup(p => p.Exists(It.IsAny())) .Returns(true); - With50MBFile(); + With80MBFile(); //Act var result = Mocker.Resolve().ImportFile(fakeSeries, fileName); @@ -172,7 +172,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DiskScanProviderTests Mocker.GetMock(MockBehavior.Strict) .Setup(e => e.IsChildOfPath(fileName, fakeSeries.Path)).Returns(false); - With50MBFile(); + With80MBFile(); Mocker.GetMock() .Setup(p => p.Exists(It.IsAny())) @@ -203,7 +203,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DiskScanProviderTests .Build(); //Mocks - With50MBFile(); + With80MBFile(); Mocker.GetMock() .Setup(p => p.Exists(It.IsAny())) @@ -235,7 +235,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DiskScanProviderTests .Build()) .Build(); - With50MBFile(); + With80MBFile(); Mocker.GetMock() .Setup(p => p.Exists(It.IsAny())) @@ -268,7 +268,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DiskScanProviderTests //Mocks - With50MBFile(); + With80MBFile(); Mocker.GetMock() .Setup(p => p.Exists(It.IsAny())) @@ -306,7 +306,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DiskScanProviderTests .Build(); //Mocks - With50MBFile(); + With80MBFile(); Mocker.GetMock() .Setup(p => p.Exists(It.IsAny())) @@ -337,7 +337,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DiskScanProviderTests .Build(); //Mocks - With50MBFile(); + With80MBFile(); Mocker.GetMock() .Setup(p => p.Exists(It.IsAny())) @@ -406,7 +406,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DiskScanProviderTests const string path = @"C:\Test\Unsorted TV\30 Rock\30.rock.s01e01.pilot.mkv"; - With50MBFile(); + With80MBFile(); Mocker.GetMock().Setup(s => s.GetEpisodesByParseResult(It.IsAny())) .Returns(new List()); @@ -429,7 +429,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DiskScanProviderTests const string path = @"C:\Test\TV\30 Rock\30.rock.s01e01.pilot.mkv"; - With50MBFile(); + With80MBFile(); Mocker.GetMock().Setup(s => s.GetEpisodesByParseResult(It.IsAny())) .Returns(new List()); diff --git a/NzbDrone.Core/Constants.cs b/NzbDrone.Core/Constants.cs index 7839034ca..6f90059e8 100644 --- a/NzbDrone.Core/Constants.cs +++ b/NzbDrone.Core/Constants.cs @@ -8,7 +8,7 @@ namespace NzbDrone.Core { get { - return 40.Megabytes(); + return 70.Megabytes(); } } } diff --git a/NzbDrone.Core/Providers/DiskScanProvider.cs b/NzbDrone.Core/Providers/DiskScanProvider.cs index 073de2c53..fd3ab22fa 100644 --- a/NzbDrone.Core/Providers/DiskScanProvider.cs +++ b/NzbDrone.Core/Providers/DiskScanProvider.cs @@ -110,7 +110,7 @@ namespace NzbDrone.Core.Providers long size = _diskProvider.GetSize(filePath); - //Skip any file under 40MB - New samples don't even have sample in the name... + //Skip any file under 70MB - New samples don't even have sample in the name... if (size < Constants.IgnoreFileSize) { Logger.Trace("[{0}] appears to be a sample. skipping.", filePath);