diff --git a/src/NzbDrone.Core.Test/ParserTests/ParsingServiceTests/AugmentersTests/AugmentWithHistoryFixture.cs b/src/NzbDrone.Core.Test/ParserTests/ParsingServiceTests/AugmentersTests/AugmentWithHistoryFixture.cs index 75b92c7b8..d76c68a6e 100644 --- a/src/NzbDrone.Core.Test/ParserTests/ParsingServiceTests/AugmentersTests/AugmentWithHistoryFixture.cs +++ b/src/NzbDrone.Core.Test/ParserTests/ParsingServiceTests/AugmentersTests/AugmentWithHistoryFixture.cs @@ -80,9 +80,9 @@ namespace NzbDrone.Core.Test.ParserTests.ParsingServiceTests.AugmentersTests [Test] public void should_add_size() { - var history = HistoryWithData("Size", 1500.ToString()); + var history = HistoryWithData("Size", 9663676416.ToString()); var movieInfo = Subject.AugmentMovieInfo(MovieInfo, history); - movieInfo.ExtraInfo["Size"].Should().BeEquivalentTo(1500); + movieInfo.ExtraInfo["Size"].Should().BeEquivalentTo(9663676416); } [Test] diff --git a/src/NzbDrone.Core/CustomFormats/CustomFormatCalculationService.cs b/src/NzbDrone.Core/CustomFormats/CustomFormatCalculationService.cs index 2a3eb48a9..8ff472528 100644 --- a/src/NzbDrone.Core/CustomFormats/CustomFormatCalculationService.cs +++ b/src/NzbDrone.Core/CustomFormats/CustomFormatCalculationService.cs @@ -120,7 +120,7 @@ namespace NzbDrone.Core.CustomFormats var parsed = _parsingService.ParseMovieInfo(history.SourceTitle, null); Enum.TryParse(history.Data.GetValueOrDefault("indexerFlags"), true, out IndexerFlags flags); - int.TryParse(history.Data.GetValueOrDefault("size"), out var size); + long.TryParse(history.Data.GetValueOrDefault("size"), out var size); var info = new ParsedMovieInfo { diff --git a/src/NzbDrone.Core/Parser/Augmenters/AugmentWithHistory.cs b/src/NzbDrone.Core/Parser/Augmenters/AugmentWithHistory.cs index 9ad19e56a..c0530ffb2 100644 --- a/src/NzbDrone.Core/Parser/Augmenters/AugmentWithHistory.cs +++ b/src/NzbDrone.Core/Parser/Augmenters/AugmentWithHistory.cs @@ -40,7 +40,7 @@ namespace NzbDrone.Core.Parser.Augmenters releaseInfo.IndexerId = indexerId; } - if (int.TryParse(history.Data.GetValueOrDefault("size"), out var size)) + if (long.TryParse(history.Data.GetValueOrDefault("size"), out var size)) { releaseInfo.Size = size; }