|
|
|
@ -48,12 +48,12 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nameSpecification.SortingIncludeSeriesName = true;
|
|
|
|
|
nameSpecification.SortingIncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.SortingAppendQuality = true;
|
|
|
|
|
nameSpecification.SortingSeparatorStyle = 0;
|
|
|
|
|
nameSpecification.SortingNumberStyle = 2;
|
|
|
|
|
nameSpecification.SortingReplaceSpaces = false;
|
|
|
|
|
nameSpecification.IncludeSeriesName = true;
|
|
|
|
|
nameSpecification.IncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.AppendQuality = true;
|
|
|
|
|
nameSpecification.SeparatorStyle = 0;
|
|
|
|
|
nameSpecification.NumberStyle = 2;
|
|
|
|
|
nameSpecification.ReplaceSpaces = false;
|
|
|
|
|
|
|
|
|
|
var episode = Builder<Episode>.CreateNew()
|
|
|
|
|
.With(e => e.Title = "City Sushi")
|
|
|
|
@ -62,7 +62,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
|
string result = Subject.GetNewFilename(new List<Episode> { episode }, _series, Quality.HDTV720p, false, new EpisodeFile());
|
|
|
|
|
string result = Subject.BuildFilename(new List<Episode> { episode }, _series, new EpisodeFile { Quality = Quality.HDTV720p, Proper = false });
|
|
|
|
|
|
|
|
|
|
//Assert
|
|
|
|
|
Assert.AreEqual("South Park - S15E06 - City Sushi [HDTV-720p]", result);
|
|
|
|
@ -75,12 +75,12 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nameSpecification.SortingIncludeSeriesName = false;
|
|
|
|
|
nameSpecification.SortingIncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.SortingAppendQuality = true;
|
|
|
|
|
nameSpecification.SortingSeparatorStyle = 0;
|
|
|
|
|
nameSpecification.SortingNumberStyle = 0;
|
|
|
|
|
nameSpecification.SortingReplaceSpaces = false;
|
|
|
|
|
nameSpecification.IncludeSeriesName = false;
|
|
|
|
|
nameSpecification.IncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.AppendQuality = true;
|
|
|
|
|
nameSpecification.SeparatorStyle = 0;
|
|
|
|
|
nameSpecification.NumberStyle = 0;
|
|
|
|
|
nameSpecification.ReplaceSpaces = false;
|
|
|
|
|
|
|
|
|
|
var episode = Builder<Episode>.CreateNew()
|
|
|
|
|
.With(e => e.Title = "City Sushi")
|
|
|
|
@ -89,7 +89,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
|
string result = Subject.GetNewFilename(new List<Episode> { episode }, _series, Quality.HDTV720p, false, new EpisodeFile());
|
|
|
|
|
string result = Subject.BuildFilename(new List<Episode> { episode }, _series, new EpisodeFile { Quality = Quality.HDTV720p, Proper = false });
|
|
|
|
|
|
|
|
|
|
//Assert
|
|
|
|
|
Assert.AreEqual("15x06 - City Sushi [HDTV-720p]", result);
|
|
|
|
@ -102,12 +102,12 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nameSpecification.SortingIncludeSeriesName = true;
|
|
|
|
|
nameSpecification.SortingIncludeEpisodeTitle = false;
|
|
|
|
|
nameSpecification.SortingAppendQuality = true;
|
|
|
|
|
nameSpecification.SortingSeparatorStyle = 1;
|
|
|
|
|
nameSpecification.SortingNumberStyle = 1;
|
|
|
|
|
nameSpecification.SortingReplaceSpaces = false;
|
|
|
|
|
nameSpecification.IncludeSeriesName = true;
|
|
|
|
|
nameSpecification.IncludeEpisodeTitle = false;
|
|
|
|
|
nameSpecification.AppendQuality = true;
|
|
|
|
|
nameSpecification.SeparatorStyle = 1;
|
|
|
|
|
nameSpecification.NumberStyle = 1;
|
|
|
|
|
nameSpecification.ReplaceSpaces = false;
|
|
|
|
|
|
|
|
|
|
var episode = Builder<Episode>.CreateNew()
|
|
|
|
|
.With(e => e.Title = "City Sushi")
|
|
|
|
@ -116,7 +116,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
|
string result = Subject.GetNewFilename(new List<Episode> { episode }, _series, Quality.HDTV720p, false, new EpisodeFile());
|
|
|
|
|
string result = Subject.BuildFilename(new List<Episode> { episode }, _series, new EpisodeFile { Quality = Quality.HDTV720p, Proper = false });
|
|
|
|
|
|
|
|
|
|
//Assert
|
|
|
|
|
Assert.AreEqual("South Park 05x06 [HDTV-720p]", result);
|
|
|
|
@ -129,12 +129,12 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nameSpecification.SortingIncludeSeriesName = true;
|
|
|
|
|
nameSpecification.SortingIncludeEpisodeTitle = false;
|
|
|
|
|
nameSpecification.SortingAppendQuality = false;
|
|
|
|
|
nameSpecification.SortingSeparatorStyle = 1;
|
|
|
|
|
nameSpecification.SortingNumberStyle = 3;
|
|
|
|
|
nameSpecification.SortingReplaceSpaces = false;
|
|
|
|
|
nameSpecification.IncludeSeriesName = true;
|
|
|
|
|
nameSpecification.IncludeEpisodeTitle = false;
|
|
|
|
|
nameSpecification.AppendQuality = false;
|
|
|
|
|
nameSpecification.SeparatorStyle = 1;
|
|
|
|
|
nameSpecification.NumberStyle = 3;
|
|
|
|
|
nameSpecification.ReplaceSpaces = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var episode = Builder<Episode>.CreateNew()
|
|
|
|
@ -144,7 +144,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
|
string result = Subject.GetNewFilename(new List<Episode> { episode }, _series, Quality.HDTV720p, false, new EpisodeFile());
|
|
|
|
|
string result = Subject.BuildFilename(new List<Episode> { episode }, _series, new EpisodeFile { Quality = Quality.HDTV720p, Proper = false });
|
|
|
|
|
|
|
|
|
|
//Assert
|
|
|
|
|
Assert.AreEqual("South Park s05e06", result);
|
|
|
|
@ -157,12 +157,12 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nameSpecification.SortingIncludeSeriesName = true;
|
|
|
|
|
nameSpecification.SortingIncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.SortingAppendQuality = false;
|
|
|
|
|
nameSpecification.SortingSeparatorStyle = 1;
|
|
|
|
|
nameSpecification.SortingNumberStyle = 3;
|
|
|
|
|
nameSpecification.SortingReplaceSpaces = true;
|
|
|
|
|
nameSpecification.IncludeSeriesName = true;
|
|
|
|
|
nameSpecification.IncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.AppendQuality = false;
|
|
|
|
|
nameSpecification.SeparatorStyle = 1;
|
|
|
|
|
nameSpecification.NumberStyle = 3;
|
|
|
|
|
nameSpecification.ReplaceSpaces = true;
|
|
|
|
|
|
|
|
|
|
var episode = Builder<Episode>.CreateNew()
|
|
|
|
|
.With(e => e.Title = "City Sushi")
|
|
|
|
@ -171,7 +171,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
|
string result = Subject.GetNewFilename(new List<Episode> { episode }, _series, Quality.HDTV720p, false, new EpisodeFile());
|
|
|
|
|
string result = Subject.BuildFilename(new List<Episode> { episode }, _series, new EpisodeFile { Quality = Quality.HDTV720p, Proper = false });
|
|
|
|
|
|
|
|
|
|
//Assert
|
|
|
|
|
Assert.AreEqual("South.Park.s05e06.City.Sushi", result);
|
|
|
|
@ -184,12 +184,12 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nameSpecification.SortingIncludeSeriesName = true;
|
|
|
|
|
nameSpecification.SortingIncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.SortingAppendQuality = true;
|
|
|
|
|
nameSpecification.SortingSeparatorStyle = 0;
|
|
|
|
|
nameSpecification.SortingNumberStyle = 3;
|
|
|
|
|
nameSpecification.SortingReplaceSpaces = true;
|
|
|
|
|
nameSpecification.IncludeSeriesName = true;
|
|
|
|
|
nameSpecification.IncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.AppendQuality = true;
|
|
|
|
|
nameSpecification.SeparatorStyle = 0;
|
|
|
|
|
nameSpecification.NumberStyle = 3;
|
|
|
|
|
nameSpecification.ReplaceSpaces = true;
|
|
|
|
|
|
|
|
|
|
var episode = Builder<Episode>.CreateNew()
|
|
|
|
|
.With(e => e.Title = "City Sushi")
|
|
|
|
@ -198,7 +198,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
|
string result = Subject.GetNewFilename(new List<Episode> { episode }, _series, Quality.HDTV720p, false, new EpisodeFile());
|
|
|
|
|
string result = Subject.BuildFilename(new List<Episode> { episode }, _series, new EpisodeFile { Quality = Quality.HDTV720p, Proper = false });
|
|
|
|
|
|
|
|
|
|
//Assert
|
|
|
|
|
Assert.AreEqual("South.Park.-.s05e06.-.City.Sushi.[HDTV-720p]", result);
|
|
|
|
@ -211,12 +211,12 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nameSpecification.SortingIncludeSeriesName = false;
|
|
|
|
|
nameSpecification.SortingIncludeEpisodeTitle = false;
|
|
|
|
|
nameSpecification.SortingAppendQuality = false;
|
|
|
|
|
nameSpecification.SortingSeparatorStyle = 0;
|
|
|
|
|
nameSpecification.SortingNumberStyle = 2;
|
|
|
|
|
nameSpecification.SortingReplaceSpaces = false;
|
|
|
|
|
nameSpecification.IncludeSeriesName = false;
|
|
|
|
|
nameSpecification.IncludeEpisodeTitle = false;
|
|
|
|
|
nameSpecification.AppendQuality = false;
|
|
|
|
|
nameSpecification.SeparatorStyle = 0;
|
|
|
|
|
nameSpecification.NumberStyle = 2;
|
|
|
|
|
nameSpecification.ReplaceSpaces = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var episode = Builder<Episode>.CreateNew()
|
|
|
|
@ -226,7 +226,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
|
string result = Subject.GetNewFilename(new List<Episode> { episode }, _series, Quality.HDTV720p, false, new EpisodeFile());
|
|
|
|
|
string result = Subject.BuildFilename(new List<Episode> { episode }, _series, new EpisodeFile { Quality = Quality.HDTV720p, Proper = false });
|
|
|
|
|
|
|
|
|
|
//Assert
|
|
|
|
|
Assert.AreEqual("S15E06", result);
|
|
|
|
@ -239,13 +239,13 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nameSpecification.SortingIncludeSeriesName = true;
|
|
|
|
|
nameSpecification.SortingIncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.SortingAppendQuality = true;
|
|
|
|
|
nameSpecification.SortingSeparatorStyle = 0;
|
|
|
|
|
nameSpecification.SortingNumberStyle = 2;
|
|
|
|
|
nameSpecification.SortingReplaceSpaces = false;
|
|
|
|
|
nameSpecification.SortingMultiEpisodeStyle = 3;
|
|
|
|
|
nameSpecification.IncludeSeriesName = true;
|
|
|
|
|
nameSpecification.IncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.AppendQuality = true;
|
|
|
|
|
nameSpecification.SeparatorStyle = 0;
|
|
|
|
|
nameSpecification.NumberStyle = 2;
|
|
|
|
|
nameSpecification.ReplaceSpaces = false;
|
|
|
|
|
nameSpecification.MultiEpisodeStyle = 3;
|
|
|
|
|
|
|
|
|
|
var episodeOne = Builder<Episode>.CreateNew()
|
|
|
|
|
.With(e => e.Title = "Strawberries and Cream (1)")
|
|
|
|
@ -260,7 +260,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
|
string result = Subject.GetNewFilename(new List<Episode> { episodeOne, episodeTwo }, new Series { Title = "The Mentalist" }, Quality.HDTV720p, false, new EpisodeFile());
|
|
|
|
|
string result = Subject.BuildFilename(new List<Episode> { episodeOne, episodeTwo }, new Series { Title = "The Mentalist" }, new EpisodeFile { Quality = Quality.HDTV720p, Proper = false });
|
|
|
|
|
|
|
|
|
|
//Assert
|
|
|
|
|
Assert.AreEqual("The Mentalist - S03E23-E24 - Strawberries and Cream [HDTV-720p]", result);
|
|
|
|
@ -273,13 +273,13 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nameSpecification.SortingIncludeSeriesName = false;
|
|
|
|
|
nameSpecification.SortingIncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.SortingAppendQuality = true;
|
|
|
|
|
nameSpecification.SortingSeparatorStyle = 0;
|
|
|
|
|
nameSpecification.SortingNumberStyle = 0;
|
|
|
|
|
nameSpecification.SortingReplaceSpaces = false;
|
|
|
|
|
nameSpecification.SortingMultiEpisodeStyle = 2;
|
|
|
|
|
nameSpecification.IncludeSeriesName = false;
|
|
|
|
|
nameSpecification.IncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.AppendQuality = true;
|
|
|
|
|
nameSpecification.SeparatorStyle = 0;
|
|
|
|
|
nameSpecification.NumberStyle = 0;
|
|
|
|
|
nameSpecification.ReplaceSpaces = false;
|
|
|
|
|
nameSpecification.MultiEpisodeStyle = 2;
|
|
|
|
|
|
|
|
|
|
var episodeOne = Builder<Episode>.CreateNew()
|
|
|
|
|
.With(e => e.Title = "Strawberries and Cream (1)")
|
|
|
|
@ -294,7 +294,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
|
string result = Subject.GetNewFilename(new List<Episode> { episodeOne, episodeTwo }, new Series { Title = "The Mentalist" }, Quality.HDTV720p, false, new EpisodeFile());
|
|
|
|
|
string result = Subject.BuildFilename(new List<Episode> { episodeOne, episodeTwo }, new Series { Title = "The Mentalist" }, new EpisodeFile { Quality = Quality.HDTV720p, Proper = false });
|
|
|
|
|
|
|
|
|
|
//Assert
|
|
|
|
|
Assert.AreEqual("3x23x24 - Strawberries and Cream [HDTV-720p]", result);
|
|
|
|
@ -307,13 +307,13 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nameSpecification.SortingIncludeSeriesName = false;
|
|
|
|
|
nameSpecification.SortingIncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.SortingAppendQuality = true;
|
|
|
|
|
nameSpecification.SortingSeparatorStyle = 1;
|
|
|
|
|
nameSpecification.SortingNumberStyle = 0;
|
|
|
|
|
nameSpecification.SortingReplaceSpaces = false;
|
|
|
|
|
nameSpecification.SortingMultiEpisodeStyle = 2;
|
|
|
|
|
nameSpecification.IncludeSeriesName = false;
|
|
|
|
|
nameSpecification.IncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.AppendQuality = true;
|
|
|
|
|
nameSpecification.SeparatorStyle = 1;
|
|
|
|
|
nameSpecification.NumberStyle = 0;
|
|
|
|
|
nameSpecification.ReplaceSpaces = false;
|
|
|
|
|
nameSpecification.MultiEpisodeStyle = 2;
|
|
|
|
|
|
|
|
|
|
var episodeOne = Builder<Episode>.CreateNew()
|
|
|
|
|
.With(e => e.Title = "Strawberries and Cream (1)")
|
|
|
|
@ -328,7 +328,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
|
string result = Subject.GetNewFilename(new List<Episode> { episodeOne, episodeTwo }, new Series { Title = "The Mentalist" }, Quality.HDTV720p, false, new EpisodeFile());
|
|
|
|
|
string result = Subject.BuildFilename(new List<Episode> { episodeOne, episodeTwo }, new Series { Title = "The Mentalist" }, new EpisodeFile { Quality = Quality.HDTV720p, Proper = false });
|
|
|
|
|
|
|
|
|
|
//Assert
|
|
|
|
|
Assert.AreEqual("3x23x24 Strawberries and Cream [HDTV-720p]", result);
|
|
|
|
@ -341,13 +341,13 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nameSpecification.SortingIncludeSeriesName = true;
|
|
|
|
|
nameSpecification.SortingIncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.SortingAppendQuality = false;
|
|
|
|
|
nameSpecification.SortingSeparatorStyle = 1;
|
|
|
|
|
nameSpecification.SortingNumberStyle = 3;
|
|
|
|
|
nameSpecification.SortingReplaceSpaces = true;
|
|
|
|
|
nameSpecification.SortingMultiEpisodeStyle = 1;
|
|
|
|
|
nameSpecification.IncludeSeriesName = true;
|
|
|
|
|
nameSpecification.IncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.AppendQuality = false;
|
|
|
|
|
nameSpecification.SeparatorStyle = 1;
|
|
|
|
|
nameSpecification.NumberStyle = 3;
|
|
|
|
|
nameSpecification.ReplaceSpaces = true;
|
|
|
|
|
nameSpecification.MultiEpisodeStyle = 1;
|
|
|
|
|
|
|
|
|
|
var episodeOne = Builder<Episode>.CreateNew()
|
|
|
|
|
.With(e => e.Title = "Strawberries and Cream (1)")
|
|
|
|
@ -362,7 +362,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
|
string result = Subject.GetNewFilename(new List<Episode> { episodeOne, episodeTwo }, new Series { Title = "The Mentalist" }, Quality.HDTV720p, false, new EpisodeFile());
|
|
|
|
|
string result = Subject.BuildFilename(new List<Episode> { episodeOne, episodeTwo }, new Series { Title = "The Mentalist" }, new EpisodeFile { Quality = Quality.HDTV720p, Proper = false });
|
|
|
|
|
|
|
|
|
|
//Assert
|
|
|
|
|
Assert.AreEqual("The.Mentalist.s03e23.s03e24.Strawberries.and.Cream", result);
|
|
|
|
@ -375,13 +375,13 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nameSpecification.SortingIncludeSeriesName = true;
|
|
|
|
|
nameSpecification.SortingIncludeEpisodeTitle = false;
|
|
|
|
|
nameSpecification.SortingAppendQuality = false;
|
|
|
|
|
nameSpecification.SortingSeparatorStyle = 0;
|
|
|
|
|
nameSpecification.SortingNumberStyle = 2;
|
|
|
|
|
nameSpecification.SortingReplaceSpaces = true;
|
|
|
|
|
nameSpecification.SortingMultiEpisodeStyle = 0;
|
|
|
|
|
nameSpecification.IncludeSeriesName = true;
|
|
|
|
|
nameSpecification.IncludeEpisodeTitle = false;
|
|
|
|
|
nameSpecification.AppendQuality = false;
|
|
|
|
|
nameSpecification.SeparatorStyle = 0;
|
|
|
|
|
nameSpecification.NumberStyle = 2;
|
|
|
|
|
nameSpecification.ReplaceSpaces = true;
|
|
|
|
|
nameSpecification.MultiEpisodeStyle = 0;
|
|
|
|
|
|
|
|
|
|
var episodeOne = Builder<Episode>.CreateNew()
|
|
|
|
|
.With(e => e.Title = "Strawberries and Cream (1)")
|
|
|
|
@ -396,7 +396,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
|
string result = Subject.GetNewFilename(new List<Episode> { episodeOne, episodeTwo }, new Series { Title = "The Mentalist" }, Quality.HDTV720p, false, new EpisodeFile());
|
|
|
|
|
string result = Subject.BuildFilename(new List<Episode> { episodeOne, episodeTwo }, new Series { Title = "The Mentalist" }, new EpisodeFile { Quality = Quality.HDTV720p, Proper = false });
|
|
|
|
|
|
|
|
|
|
//Assert
|
|
|
|
|
Assert.AreEqual("The.Mentalist.-.S03E23-24", result);
|
|
|
|
@ -409,13 +409,13 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nameSpecification.SortingIncludeSeriesName = false;
|
|
|
|
|
nameSpecification.SortingIncludeEpisodeTitle = false;
|
|
|
|
|
nameSpecification.SortingAppendQuality = false;
|
|
|
|
|
nameSpecification.SortingSeparatorStyle = 0;
|
|
|
|
|
nameSpecification.SortingNumberStyle = 0;
|
|
|
|
|
nameSpecification.SortingReplaceSpaces = true;
|
|
|
|
|
nameSpecification.SortingMultiEpisodeStyle = 2;
|
|
|
|
|
nameSpecification.IncludeSeriesName = false;
|
|
|
|
|
nameSpecification.IncludeEpisodeTitle = false;
|
|
|
|
|
nameSpecification.AppendQuality = false;
|
|
|
|
|
nameSpecification.SeparatorStyle = 0;
|
|
|
|
|
nameSpecification.NumberStyle = 0;
|
|
|
|
|
nameSpecification.ReplaceSpaces = true;
|
|
|
|
|
nameSpecification.MultiEpisodeStyle = 2;
|
|
|
|
|
|
|
|
|
|
var episodeOne = Builder<Episode>.CreateNew()
|
|
|
|
|
.With(e => e.Title = "Strawberries and Cream (1)")
|
|
|
|
@ -430,7 +430,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
|
string result = Subject.GetNewFilename(new List<Episode> { episodeOne, episodeTwo }, new Series { Title = "The Mentalist" }, Quality.HDTV720p, false, new EpisodeFile());
|
|
|
|
|
string result = Subject.BuildFilename(new List<Episode> { episodeOne, episodeTwo }, new Series { Title = "The Mentalist" }, new EpisodeFile { Quality = Quality.HDTV720p, Proper = false });
|
|
|
|
|
|
|
|
|
|
//Assert
|
|
|
|
|
Assert.AreEqual("3x23x24", result);
|
|
|
|
@ -441,12 +441,12 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
{
|
|
|
|
|
//Setup
|
|
|
|
|
|
|
|
|
|
nameSpecification.SortingIncludeSeriesName = true;
|
|
|
|
|
nameSpecification.SortingIncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.SortingAppendQuality = true;
|
|
|
|
|
nameSpecification.SortingSeparatorStyle = 0;
|
|
|
|
|
nameSpecification.SortingNumberStyle = 2;
|
|
|
|
|
nameSpecification.SortingReplaceSpaces = false;
|
|
|
|
|
nameSpecification.IncludeSeriesName = true;
|
|
|
|
|
nameSpecification.IncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.AppendQuality = true;
|
|
|
|
|
nameSpecification.SeparatorStyle = 0;
|
|
|
|
|
nameSpecification.NumberStyle = 2;
|
|
|
|
|
nameSpecification.ReplaceSpaces = false;
|
|
|
|
|
|
|
|
|
|
var episode = Builder<Episode>.CreateNew()
|
|
|
|
|
.With(e => e.Title = "City Sushi")
|
|
|
|
@ -455,7 +455,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
|
string result = Subject.GetNewFilename(new List<Episode> { episode }, _series, Quality.HDTV720p, true, new EpisodeFile());
|
|
|
|
|
string result = Subject.BuildFilename(new List<Episode> { episode }, _series, new EpisodeFile { Quality = Quality.HDTV720p, Proper = true });
|
|
|
|
|
|
|
|
|
|
//Assert
|
|
|
|
|
result.Should().Be("South Park - S15E06 - City Sushi [HDTV-720p] [Proper]");
|
|
|
|
@ -466,12 +466,12 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
{
|
|
|
|
|
//Setup
|
|
|
|
|
|
|
|
|
|
nameSpecification.SortingIncludeSeriesName = true;
|
|
|
|
|
nameSpecification.SortingIncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.SortingAppendQuality = true;
|
|
|
|
|
nameSpecification.SortingSeparatorStyle = 0;
|
|
|
|
|
nameSpecification.SortingNumberStyle = 2;
|
|
|
|
|
nameSpecification.SortingReplaceSpaces = false;
|
|
|
|
|
nameSpecification.IncludeSeriesName = true;
|
|
|
|
|
nameSpecification.IncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.AppendQuality = true;
|
|
|
|
|
nameSpecification.SeparatorStyle = 0;
|
|
|
|
|
nameSpecification.NumberStyle = 2;
|
|
|
|
|
nameSpecification.ReplaceSpaces = false;
|
|
|
|
|
|
|
|
|
|
var episode = Builder<Episode>.CreateNew()
|
|
|
|
|
.With(e => e.Title = "City Sushi")
|
|
|
|
@ -480,7 +480,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
|
string result = Subject.GetNewFilename(new List<Episode> { episode }, _series, Quality.HDTV720p, false, new EpisodeFile());
|
|
|
|
|
string result = Subject.BuildFilename(new List<Episode> { episode }, _series, new EpisodeFile { Quality = Quality.HDTV720p, Proper = false });
|
|
|
|
|
|
|
|
|
|
//Assert
|
|
|
|
|
result.Should().Be("South Park - S15E06 - City Sushi [HDTV-720p]");
|
|
|
|
@ -491,12 +491,12 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
{
|
|
|
|
|
//Setup
|
|
|
|
|
|
|
|
|
|
nameSpecification.SortingIncludeSeriesName = true;
|
|
|
|
|
nameSpecification.SortingIncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.SortingAppendQuality = false;
|
|
|
|
|
nameSpecification.SortingSeparatorStyle = 0;
|
|
|
|
|
nameSpecification.SortingNumberStyle = 2;
|
|
|
|
|
nameSpecification.SortingReplaceSpaces = false;
|
|
|
|
|
nameSpecification.IncludeSeriesName = true;
|
|
|
|
|
nameSpecification.IncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.AppendQuality = false;
|
|
|
|
|
nameSpecification.SeparatorStyle = 0;
|
|
|
|
|
nameSpecification.NumberStyle = 2;
|
|
|
|
|
nameSpecification.ReplaceSpaces = false;
|
|
|
|
|
|
|
|
|
|
var episode = Builder<Episode>.CreateNew()
|
|
|
|
|
.With(e => e.Title = "City Sushi")
|
|
|
|
@ -505,7 +505,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
|
string result = Subject.GetNewFilename(new List<Episode> { episode }, _series, Quality.HDTV720p, true, new EpisodeFile());
|
|
|
|
|
string result = Subject.BuildFilename(new List<Episode> { episode }, _series, new EpisodeFile { Quality = Quality.HDTV720p, Proper = true });
|
|
|
|
|
|
|
|
|
|
//Assert
|
|
|
|
|
result.Should().Be("South Park - S15E06 - City Sushi");
|
|
|
|
@ -516,13 +516,13 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
{
|
|
|
|
|
//Setup
|
|
|
|
|
|
|
|
|
|
nameSpecification.SortingIncludeSeriesName = true;
|
|
|
|
|
nameSpecification.SortingIncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.SortingAppendQuality = false;
|
|
|
|
|
nameSpecification.SortingSeparatorStyle = 0;
|
|
|
|
|
nameSpecification.SortingNumberStyle = 2;
|
|
|
|
|
nameSpecification.SortingReplaceSpaces = false;
|
|
|
|
|
nameSpecification.SortingMultiEpisodeStyle = 3;
|
|
|
|
|
nameSpecification.IncludeSeriesName = true;
|
|
|
|
|
nameSpecification.IncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.AppendQuality = false;
|
|
|
|
|
nameSpecification.SeparatorStyle = 0;
|
|
|
|
|
nameSpecification.NumberStyle = 2;
|
|
|
|
|
nameSpecification.ReplaceSpaces = false;
|
|
|
|
|
nameSpecification.MultiEpisodeStyle = 3;
|
|
|
|
|
|
|
|
|
|
var episode = Builder<Episode>.CreateNew()
|
|
|
|
|
.With(e => e.Title = "Hey, Baby, What's Wrong? (1)")
|
|
|
|
@ -537,7 +537,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
|
string result = Subject.GetNewFilename(new List<Episode> { episode2, episode }, new Series { Title = "30 Rock" }, Quality.HDTV720p, false, new EpisodeFile());
|
|
|
|
|
string result = Subject.BuildFilename(new List<Episode> { episode2, episode }, new Series { Title = "30 Rock" }, new EpisodeFile { Quality = Quality.HDTV720p, Proper = false });
|
|
|
|
|
|
|
|
|
|
//Assert
|
|
|
|
|
result.Should().Be("30 Rock - S06E06-E07 - Hey, Baby, What's Wrong!");
|
|
|
|
@ -550,12 +550,12 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nameSpecification.SortingIncludeSeriesName = true;
|
|
|
|
|
nameSpecification.SortingIncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.SortingAppendQuality = true;
|
|
|
|
|
nameSpecification.SortingSeparatorStyle = 2;
|
|
|
|
|
nameSpecification.SortingNumberStyle = 2;
|
|
|
|
|
nameSpecification.SortingReplaceSpaces = false;
|
|
|
|
|
nameSpecification.IncludeSeriesName = true;
|
|
|
|
|
nameSpecification.IncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.AppendQuality = true;
|
|
|
|
|
nameSpecification.SeparatorStyle = 2;
|
|
|
|
|
nameSpecification.NumberStyle = 2;
|
|
|
|
|
nameSpecification.ReplaceSpaces = false;
|
|
|
|
|
|
|
|
|
|
var episode = Builder<Episode>.CreateNew()
|
|
|
|
|
.With(e => e.Title = "City Sushi")
|
|
|
|
@ -564,7 +564,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
|
string result = Subject.GetNewFilename(new List<Episode> { episode }, _series, Quality.HDTV720p, false, new EpisodeFile());
|
|
|
|
|
string result = Subject.BuildFilename(new List<Episode> { episode }, _series, new EpisodeFile { Quality = Quality.HDTV720p, Proper = false });
|
|
|
|
|
|
|
|
|
|
//Assert
|
|
|
|
|
Assert.AreEqual("South Park.S15E06.City Sushi [HDTV-720p]", result);
|
|
|
|
@ -577,12 +577,12 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nameSpecification.SortingIncludeSeriesName = false;
|
|
|
|
|
nameSpecification.SortingIncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.SortingAppendQuality = true;
|
|
|
|
|
nameSpecification.SortingSeparatorStyle = 2;
|
|
|
|
|
nameSpecification.SortingNumberStyle = 0;
|
|
|
|
|
nameSpecification.SortingReplaceSpaces = false;
|
|
|
|
|
nameSpecification.IncludeSeriesName = false;
|
|
|
|
|
nameSpecification.IncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.AppendQuality = true;
|
|
|
|
|
nameSpecification.SeparatorStyle = 2;
|
|
|
|
|
nameSpecification.NumberStyle = 0;
|
|
|
|
|
nameSpecification.ReplaceSpaces = false;
|
|
|
|
|
|
|
|
|
|
var episode = Builder<Episode>.CreateNew()
|
|
|
|
|
.With(e => e.Title = "City Sushi")
|
|
|
|
@ -591,7 +591,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
|
string result = Subject.GetNewFilename(new List<Episode> { episode }, _series, Quality.HDTV720p, false, new EpisodeFile());
|
|
|
|
|
string result = Subject.BuildFilename(new List<Episode> { episode }, _series, new EpisodeFile { Quality = Quality.HDTV720p, Proper = false });
|
|
|
|
|
|
|
|
|
|
//Assert
|
|
|
|
|
Assert.AreEqual("15x06.City Sushi [HDTV-720p]", result);
|
|
|
|
@ -602,13 +602,13 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
{
|
|
|
|
|
//Setup
|
|
|
|
|
|
|
|
|
|
nameSpecification.SortingIncludeSeriesName = false;
|
|
|
|
|
nameSpecification.SortingIncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.SortingAppendQuality = true;
|
|
|
|
|
nameSpecification.SortingSeparatorStyle = 2;
|
|
|
|
|
nameSpecification.SortingNumberStyle = 0;
|
|
|
|
|
nameSpecification.SortingReplaceSpaces = false;
|
|
|
|
|
nameSpecification.SortingUseSceneName = true;
|
|
|
|
|
nameSpecification.IncludeSeriesName = false;
|
|
|
|
|
nameSpecification.IncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.AppendQuality = true;
|
|
|
|
|
nameSpecification.SeparatorStyle = 2;
|
|
|
|
|
nameSpecification.NumberStyle = 0;
|
|
|
|
|
nameSpecification.ReplaceSpaces = false;
|
|
|
|
|
nameSpecification.UseSceneName = true;
|
|
|
|
|
|
|
|
|
|
var episode = Builder<Episode>.CreateNew()
|
|
|
|
|
.With(e => e.Title = "City Sushi")
|
|
|
|
@ -622,7 +622,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
|
string result = Subject.GetNewFilename(new List<Episode> { episode }, _series, Quality.HDTV720p, false, episodeFile);
|
|
|
|
|
string result = Subject.BuildFilename(new List<Episode> { episode }, _series, episodeFile);
|
|
|
|
|
|
|
|
|
|
//Assert
|
|
|
|
|
result.Should().Be(Path.GetFileNameWithoutExtension(episodeFile.Path));
|
|
|
|
@ -633,13 +633,13 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
{
|
|
|
|
|
//Setup
|
|
|
|
|
|
|
|
|
|
nameSpecification.SortingIncludeSeriesName = false;
|
|
|
|
|
nameSpecification.SortingIncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.SortingAppendQuality = true;
|
|
|
|
|
nameSpecification.SortingSeparatorStyle = 2;
|
|
|
|
|
nameSpecification.SortingNumberStyle = 0;
|
|
|
|
|
nameSpecification.SortingReplaceSpaces = false;
|
|
|
|
|
nameSpecification.SortingUseSceneName = true;
|
|
|
|
|
nameSpecification.IncludeSeriesName = false;
|
|
|
|
|
nameSpecification.IncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.AppendQuality = true;
|
|
|
|
|
nameSpecification.SeparatorStyle = 2;
|
|
|
|
|
nameSpecification.NumberStyle = 0;
|
|
|
|
|
nameSpecification.ReplaceSpaces = false;
|
|
|
|
|
nameSpecification.UseSceneName = true;
|
|
|
|
|
|
|
|
|
|
var episode = Builder<Episode>.CreateNew()
|
|
|
|
|
.With(e => e.Title = "City Sushi")
|
|
|
|
@ -653,7 +653,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
|
string result = Subject.GetNewFilename(new List<Episode> { episode }, _series, Quality.HDTV720p, false, episodeFile);
|
|
|
|
|
string result = Subject.BuildFilename(new List<Episode> { episode }, _series, episodeFile);
|
|
|
|
|
|
|
|
|
|
//Assert
|
|
|
|
|
result.Should().Be(episodeFile.SceneName);
|
|
|
|
@ -664,13 +664,13 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
{
|
|
|
|
|
//Setup
|
|
|
|
|
|
|
|
|
|
nameSpecification.SortingIncludeSeriesName = true;
|
|
|
|
|
nameSpecification.SortingIncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.SortingAppendQuality = false;
|
|
|
|
|
nameSpecification.SortingSeparatorStyle = 0;
|
|
|
|
|
nameSpecification.SortingNumberStyle = 2;
|
|
|
|
|
nameSpecification.SortingReplaceSpaces = false;
|
|
|
|
|
nameSpecification.SortingMultiEpisodeStyle = 3;
|
|
|
|
|
nameSpecification.IncludeSeriesName = true;
|
|
|
|
|
nameSpecification.IncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.AppendQuality = false;
|
|
|
|
|
nameSpecification.SeparatorStyle = 0;
|
|
|
|
|
nameSpecification.NumberStyle = 2;
|
|
|
|
|
nameSpecification.ReplaceSpaces = false;
|
|
|
|
|
nameSpecification.MultiEpisodeStyle = 3;
|
|
|
|
|
|
|
|
|
|
var episode = Builder<Episode>.CreateNew()
|
|
|
|
|
.With(e => e.Title = "Hey, Baby, What's Wrong? (1)")
|
|
|
|
@ -685,7 +685,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
|
string result = Subject.GetNewFilename(new List<Episode> { episode2, episode }, new Series { Title = "30 Rock" }, Quality.HDTV720p, false, new EpisodeFile());
|
|
|
|
|
string result = Subject.BuildFilename(new List<Episode> { episode2, episode }, new Series { Title = "30 Rock" }, new EpisodeFile { Quality = Quality.HDTV720p, Proper = false });
|
|
|
|
|
|
|
|
|
|
//Assert
|
|
|
|
|
result.Should().Be("30 Rock - S06E06-E07 - Hey, Baby, What's Wrong!");
|
|
|
|
@ -696,13 +696,13 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
{
|
|
|
|
|
//Setup
|
|
|
|
|
|
|
|
|
|
nameSpecification.SortingIncludeSeriesName = true;
|
|
|
|
|
nameSpecification.SortingIncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.SortingAppendQuality = false;
|
|
|
|
|
nameSpecification.SortingSeparatorStyle = 0;
|
|
|
|
|
nameSpecification.SortingNumberStyle = 2;
|
|
|
|
|
nameSpecification.SortingReplaceSpaces = false;
|
|
|
|
|
nameSpecification.SortingMultiEpisodeStyle = 3;
|
|
|
|
|
nameSpecification.IncludeSeriesName = true;
|
|
|
|
|
nameSpecification.IncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.AppendQuality = false;
|
|
|
|
|
nameSpecification.SeparatorStyle = 0;
|
|
|
|
|
nameSpecification.NumberStyle = 2;
|
|
|
|
|
nameSpecification.ReplaceSpaces = false;
|
|
|
|
|
nameSpecification.MultiEpisodeStyle = 3;
|
|
|
|
|
|
|
|
|
|
var episode = Builder<Episode>.CreateNew()
|
|
|
|
|
.With(e => e.Title = "Hello")
|
|
|
|
@ -717,7 +717,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
|
string result = Subject.GetNewFilename(new List<Episode> { episode2, episode }, new Series { Title = "30 Rock" }, Quality.HDTV720p, false, new EpisodeFile());
|
|
|
|
|
string result = Subject.BuildFilename(new List<Episode> { episode2, episode }, new Series { Title = "30 Rock" }, new EpisodeFile { Quality = Quality.HDTV720p, Proper = false });
|
|
|
|
|
|
|
|
|
|
//Assert
|
|
|
|
|
result.Should().Be("30 Rock - S06E06-E07 - Hello + World");
|
|
|
|
@ -728,13 +728,13 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
{
|
|
|
|
|
//Setup
|
|
|
|
|
|
|
|
|
|
nameSpecification.SortingIncludeSeriesName = true;
|
|
|
|
|
nameSpecification.SortingIncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.SortingAppendQuality = false;
|
|
|
|
|
nameSpecification.SortingSeparatorStyle = 0;
|
|
|
|
|
nameSpecification.SortingNumberStyle = 2;
|
|
|
|
|
nameSpecification.SortingReplaceSpaces = false;
|
|
|
|
|
nameSpecification.SortingMultiEpisodeStyle = 3;
|
|
|
|
|
nameSpecification.IncludeSeriesName = true;
|
|
|
|
|
nameSpecification.IncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.AppendQuality = false;
|
|
|
|
|
nameSpecification.SeparatorStyle = 0;
|
|
|
|
|
nameSpecification.NumberStyle = 2;
|
|
|
|
|
nameSpecification.ReplaceSpaces = false;
|
|
|
|
|
nameSpecification.MultiEpisodeStyle = 3;
|
|
|
|
|
|
|
|
|
|
var episode = Builder<Episode>.CreateNew()
|
|
|
|
|
.With(e => e.Title = "Hello (3)")
|
|
|
|
@ -755,7 +755,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
|
string result = Subject.GetNewFilename(new List<Episode> { episode, episode2, episode3 }, new Series { Title = "30 Rock" }, Quality.HDTV720p, false, new EpisodeFile());
|
|
|
|
|
string result = Subject.BuildFilename(new List<Episode> { episode, episode2, episode3 }, new Series { Title = "30 Rock" }, new EpisodeFile { Quality = Quality.HDTV720p, Proper = false });
|
|
|
|
|
|
|
|
|
|
//Assert
|
|
|
|
|
result.Should().Be("30 Rock - S06E06-E07-E08 - Hello + World");
|
|
|
|
@ -765,12 +765,12 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
public void should_use_airDate_if_series_isDaily()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
nameSpecification.SortingIncludeSeriesName = true;
|
|
|
|
|
nameSpecification.SortingIncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.SortingAppendQuality = true;
|
|
|
|
|
nameSpecification.SortingSeparatorStyle = 0;
|
|
|
|
|
nameSpecification.SortingNumberStyle = 2;
|
|
|
|
|
nameSpecification.SortingReplaceSpaces = false;
|
|
|
|
|
nameSpecification.IncludeSeriesName = true;
|
|
|
|
|
nameSpecification.IncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.AppendQuality = true;
|
|
|
|
|
nameSpecification.SeparatorStyle = 0;
|
|
|
|
|
nameSpecification.NumberStyle = 2;
|
|
|
|
|
nameSpecification.ReplaceSpaces = false;
|
|
|
|
|
|
|
|
|
|
var series = Builder<Series>
|
|
|
|
|
.CreateNew()
|
|
|
|
@ -786,7 +786,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
var result = Subject
|
|
|
|
|
.GetNewFilename(episodes, series, Quality.HDTV720p, false, new EpisodeFile());
|
|
|
|
|
.BuildFilename(episodes, series, new EpisodeFile { Quality = Quality.HDTV720p, Proper = false });
|
|
|
|
|
result.Should().Be("The Daily Show with Jon Stewart - 2012-12-13 - Kristen Stewart [HDTV-720p]");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -794,12 +794,12 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
public void should_use_airDate_if_series_isDaily_no_episode_title()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
nameSpecification.SortingIncludeSeriesName = true;
|
|
|
|
|
nameSpecification.SortingIncludeEpisodeTitle = false;
|
|
|
|
|
nameSpecification.SortingAppendQuality = false;
|
|
|
|
|
nameSpecification.SortingSeparatorStyle = 0;
|
|
|
|
|
nameSpecification.SortingNumberStyle = 2;
|
|
|
|
|
nameSpecification.SortingReplaceSpaces = false;
|
|
|
|
|
nameSpecification.IncludeSeriesName = true;
|
|
|
|
|
nameSpecification.IncludeEpisodeTitle = false;
|
|
|
|
|
nameSpecification.AppendQuality = false;
|
|
|
|
|
nameSpecification.SeparatorStyle = 0;
|
|
|
|
|
nameSpecification.NumberStyle = 2;
|
|
|
|
|
nameSpecification.ReplaceSpaces = false;
|
|
|
|
|
|
|
|
|
|
var series = Builder<Series>
|
|
|
|
|
.CreateNew()
|
|
|
|
@ -815,7 +815,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
var result = Subject
|
|
|
|
|
.GetNewFilename(episodes, series, Quality.HDTV720p, false, new EpisodeFile());
|
|
|
|
|
.BuildFilename(episodes, series, new EpisodeFile { Quality = Quality.HDTV720p, Proper = false });
|
|
|
|
|
result.Should().Be("The Daily Show with Jon Stewart - 2012-12-13");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -823,12 +823,12 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
public void should_set_airdate_to_unknown_if_not_available()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
nameSpecification.SortingIncludeSeriesName = true;
|
|
|
|
|
nameSpecification.SortingIncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.SortingAppendQuality = false;
|
|
|
|
|
nameSpecification.SortingSeparatorStyle = 0;
|
|
|
|
|
nameSpecification.SortingNumberStyle = 2;
|
|
|
|
|
nameSpecification.SortingReplaceSpaces = false;
|
|
|
|
|
nameSpecification.IncludeSeriesName = true;
|
|
|
|
|
nameSpecification.IncludeEpisodeTitle = true;
|
|
|
|
|
nameSpecification.AppendQuality = false;
|
|
|
|
|
nameSpecification.SeparatorStyle = 0;
|
|
|
|
|
nameSpecification.NumberStyle = 2;
|
|
|
|
|
nameSpecification.ReplaceSpaces = false;
|
|
|
|
|
|
|
|
|
|
var series = Builder<Series>
|
|
|
|
|
.CreateNew()
|
|
|
|
@ -844,7 +844,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
var result = Subject
|
|
|
|
|
.GetNewFilename(episodes, series, Quality.HDTV720p, false, new EpisodeFile());
|
|
|
|
|
.BuildFilename(episodes, series, new EpisodeFile { Quality = Quality.HDTV720p, Proper = false });
|
|
|
|
|
result.Should().Be("The Daily Show with Jon Stewart - Unknown - Kristen Stewart");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|