|
|
@ -97,7 +97,7 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
|
|
|
|
public void should_format_duplicate_multi_episode_properly()
|
|
|
|
public void should_format_duplicate_multi_episode_properly()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_namingConfig.StandardEpisodeFormat = "{Series Title} - S{season:00}E{episode:00} - {Episode Title}";
|
|
|
|
_namingConfig.StandardEpisodeFormat = "{Series Title} - S{season:00}E{episode:00} - {Episode Title}";
|
|
|
|
_namingConfig.MultiEpisodeStyle = 1;
|
|
|
|
_namingConfig.MultiEpisodeStyle = MultiEpisodeStyle.Duplicate;
|
|
|
|
|
|
|
|
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1, _episode2 }, _series, _episodeFile)
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1, _episode2 }, _series, _episodeFile)
|
|
|
|
.Should().Be("South Park - S15E06 - S15E07 - City Sushi");
|
|
|
|
.Should().Be("South Park - S15E06 - S15E07 - City Sushi");
|
|
|
@ -107,7 +107,7 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
|
|
|
|
public void should_format_repeat_multi_episode_properly()
|
|
|
|
public void should_format_repeat_multi_episode_properly()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_namingConfig.StandardEpisodeFormat = "{Series Title} - S{season:00}E{episode:00} - {Episode Title}";
|
|
|
|
_namingConfig.StandardEpisodeFormat = "{Series Title} - S{season:00}E{episode:00} - {Episode Title}";
|
|
|
|
_namingConfig.MultiEpisodeStyle = 2;
|
|
|
|
_namingConfig.MultiEpisodeStyle = MultiEpisodeStyle.Repeat;
|
|
|
|
|
|
|
|
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1, _episode2 }, _series, _episodeFile)
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1, _episode2 }, _series, _episodeFile)
|
|
|
|
.Should().Be("South Park - S15E06E07 - City Sushi");
|
|
|
|
.Should().Be("South Park - S15E06E07 - City Sushi");
|
|
|
@ -117,7 +117,7 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
|
|
|
|
public void should_format_scene_multi_episode_properly()
|
|
|
|
public void should_format_scene_multi_episode_properly()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_namingConfig.StandardEpisodeFormat = "{Series Title} - S{season:00}E{episode:00} - {Episode Title}";
|
|
|
|
_namingConfig.StandardEpisodeFormat = "{Series Title} - S{season:00}E{episode:00} - {Episode Title}";
|
|
|
|
_namingConfig.MultiEpisodeStyle = 3;
|
|
|
|
_namingConfig.MultiEpisodeStyle = MultiEpisodeStyle.Scene;
|
|
|
|
|
|
|
|
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1, _episode2 }, _series, _episodeFile)
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1, _episode2 }, _series, _episodeFile)
|
|
|
|
.Should().Be("South Park - S15E06-E07 - City Sushi");
|
|
|
|
.Should().Be("South Park - S15E06-E07 - City Sushi");
|
|
|
@ -137,7 +137,7 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
|
|
|
|
public void should_duplicate_absolute_pattern_when_multi_episode_style_is_duplicate()
|
|
|
|
public void should_duplicate_absolute_pattern_when_multi_episode_style_is_duplicate()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_series.SeriesType = SeriesTypes.Anime;
|
|
|
|
_series.SeriesType = SeriesTypes.Anime;
|
|
|
|
_namingConfig.MultiEpisodeStyle = (int)MultiEpisodeStyle.Duplicate;
|
|
|
|
_namingConfig.MultiEpisodeStyle = MultiEpisodeStyle.Duplicate;
|
|
|
|
_namingConfig.AnimeEpisodeFormat = "{Series Title} - {absolute:000} - {Episode Title}";
|
|
|
|
_namingConfig.AnimeEpisodeFormat = "{Series Title} - {absolute:000} - {Episode Title}";
|
|
|
|
|
|
|
|
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1, _episode2, _episode3 }, _series, _episodeFile)
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1, _episode2, _episode3 }, _series, _episodeFile)
|
|
|
@ -149,7 +149,7 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_namingConfig.StandardEpisodeFormat =
|
|
|
|
_namingConfig.StandardEpisodeFormat =
|
|
|
|
"{Series Title} - S{season:00}E{episode:00} - ({Quality Title}, {MediaInfo Full}, {Release Group}) - {Episode Title}";
|
|
|
|
"{Series Title} - S{season:00}E{episode:00} - ({Quality Title}, {MediaInfo Full}, {Release Group}) - {Episode Title}";
|
|
|
|
_namingConfig.MultiEpisodeStyle = (int)MultiEpisodeStyle.Duplicate;
|
|
|
|
_namingConfig.MultiEpisodeStyle = MultiEpisodeStyle.Duplicate;
|
|
|
|
|
|
|
|
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1, _episode2 }, _series, _episodeFile)
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1, _episode2 }, _series, _episodeFile)
|
|
|
|
.Should().Be("South Park - S15E06 - S15E07 - (HDTV-720p, , SonarrTest) - City Sushi");
|
|
|
|
.Should().Be("South Park - S15E06 - S15E07 - (HDTV-720p, , SonarrTest) - City Sushi");
|
|
|
@ -159,7 +159,7 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
|
|
|
|
public void should_format_range_multi_episode_properly()
|
|
|
|
public void should_format_range_multi_episode_properly()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_namingConfig.StandardEpisodeFormat = "{Series Title} - S{season:00}E{episode:00} - {Episode Title}";
|
|
|
|
_namingConfig.StandardEpisodeFormat = "{Series Title} - S{season:00}E{episode:00} - {Episode Title}";
|
|
|
|
_namingConfig.MultiEpisodeStyle = 4;
|
|
|
|
_namingConfig.MultiEpisodeStyle = MultiEpisodeStyle.Range;
|
|
|
|
|
|
|
|
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1, _episode2, _episode3 }, _series, _episodeFile)
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1, _episode2, _episode3 }, _series, _episodeFile)
|
|
|
|
.Should().Be("South Park - S15E06-08 - City Sushi");
|
|
|
|
.Should().Be("South Park - S15E06-08 - City Sushi");
|
|
|
@ -169,7 +169,7 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
|
|
|
|
public void should_format_range_multi_episode_anime_properly()
|
|
|
|
public void should_format_range_multi_episode_anime_properly()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_series.SeriesType = SeriesTypes.Anime;
|
|
|
|
_series.SeriesType = SeriesTypes.Anime;
|
|
|
|
_namingConfig.MultiEpisodeStyle = 4;
|
|
|
|
_namingConfig.MultiEpisodeStyle = MultiEpisodeStyle.Range;
|
|
|
|
_namingConfig.AnimeEpisodeFormat = "{Series Title} - {absolute:000} - {Episode Title}";
|
|
|
|
_namingConfig.AnimeEpisodeFormat = "{Series Title} - {absolute:000} - {Episode Title}";
|
|
|
|
|
|
|
|
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1, _episode2, _episode3 }, _series, _episodeFile)
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1, _episode2, _episode3 }, _series, _episodeFile)
|
|
|
@ -180,7 +180,7 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
|
|
|
|
public void should_format_repeat_multi_episode_anime_properly()
|
|
|
|
public void should_format_repeat_multi_episode_anime_properly()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_series.SeriesType = SeriesTypes.Anime;
|
|
|
|
_series.SeriesType = SeriesTypes.Anime;
|
|
|
|
_namingConfig.MultiEpisodeStyle = 2;
|
|
|
|
_namingConfig.MultiEpisodeStyle = MultiEpisodeStyle.Repeat;
|
|
|
|
_namingConfig.AnimeEpisodeFormat = "{Series Title} - {absolute:000} - {Episode Title}";
|
|
|
|
_namingConfig.AnimeEpisodeFormat = "{Series Title} - {absolute:000} - {Episode Title}";
|
|
|
|
|
|
|
|
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1, _episode2, _episode3 }, _series, _episodeFile)
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1, _episode2, _episode3 }, _series, _episodeFile)
|
|
|
@ -191,7 +191,7 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
|
|
|
|
public void should_format_single_episode_with_range_multi_episode_properly()
|
|
|
|
public void should_format_single_episode_with_range_multi_episode_properly()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_namingConfig.StandardEpisodeFormat = "{Series Title} - S{season:00}E{episode:00} - {Episode Title}";
|
|
|
|
_namingConfig.StandardEpisodeFormat = "{Series Title} - S{season:00}E{episode:00} - {Episode Title}";
|
|
|
|
_namingConfig.MultiEpisodeStyle = 4;
|
|
|
|
_namingConfig.MultiEpisodeStyle = MultiEpisodeStyle.Range;
|
|
|
|
|
|
|
|
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1 }, _series, _episodeFile)
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1 }, _series, _episodeFile)
|
|
|
|
.Should().Be("South Park - S15E06 - City Sushi");
|
|
|
|
.Should().Be("South Park - S15E06 - City Sushi");
|
|
|
@ -201,7 +201,7 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
|
|
|
|
public void should_format_single_anime_episode_with_range_multi_episode_properly()
|
|
|
|
public void should_format_single_anime_episode_with_range_multi_episode_properly()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_series.SeriesType = SeriesTypes.Anime;
|
|
|
|
_series.SeriesType = SeriesTypes.Anime;
|
|
|
|
_namingConfig.MultiEpisodeStyle = 4;
|
|
|
|
_namingConfig.MultiEpisodeStyle = MultiEpisodeStyle.Range;
|
|
|
|
_namingConfig.AnimeEpisodeFormat = "{Series Title} - {absolute:000} - {Episode Title}";
|
|
|
|
_namingConfig.AnimeEpisodeFormat = "{Series Title} - {absolute:000} - {Episode Title}";
|
|
|
|
|
|
|
|
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1 }, _series, _episodeFile)
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1 }, _series, _episodeFile)
|
|
|
@ -212,7 +212,7 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
|
|
|
|
public void should_default_to_dash_when_serparator_is_not_set_for_absolute_number()
|
|
|
|
public void should_default_to_dash_when_serparator_is_not_set_for_absolute_number()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_series.SeriesType = SeriesTypes.Anime;
|
|
|
|
_series.SeriesType = SeriesTypes.Anime;
|
|
|
|
_namingConfig.MultiEpisodeStyle = (int)MultiEpisodeStyle.Duplicate;
|
|
|
|
_namingConfig.MultiEpisodeStyle = MultiEpisodeStyle.Duplicate;
|
|
|
|
_namingConfig.AnimeEpisodeFormat = "{Series Title} - {season}x{episode:00} - [{absolute:000}] - {Episode Title} - {Quality Title}";
|
|
|
|
_namingConfig.AnimeEpisodeFormat = "{Series Title} - {season}x{episode:00} - [{absolute:000}] - {Episode Title} - {Quality Title}";
|
|
|
|
|
|
|
|
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1, _episode2 }, _series, _episodeFile)
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1, _episode2 }, _series, _episodeFile)
|
|
|
@ -223,7 +223,7 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
|
|
|
|
public void should_format_prefixed_range_multi_episode_properly()
|
|
|
|
public void should_format_prefixed_range_multi_episode_properly()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_namingConfig.StandardEpisodeFormat = "{Series Title} - S{season:00}E{episode:00} - {Episode Title}";
|
|
|
|
_namingConfig.StandardEpisodeFormat = "{Series Title} - S{season:00}E{episode:00} - {Episode Title}";
|
|
|
|
_namingConfig.MultiEpisodeStyle = 5;
|
|
|
|
_namingConfig.MultiEpisodeStyle = MultiEpisodeStyle.PrefixedRange;
|
|
|
|
|
|
|
|
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1, _episode2, _episode3 }, _series, _episodeFile)
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1, _episode2, _episode3 }, _series, _episodeFile)
|
|
|
|
.Should().Be("South Park - S15E06-E08 - City Sushi");
|
|
|
|
.Should().Be("South Park - S15E06-E08 - City Sushi");
|
|
|
@ -233,7 +233,7 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
|
|
|
|
public void should_format_prefixed_range_multi_episode_anime_properly()
|
|
|
|
public void should_format_prefixed_range_multi_episode_anime_properly()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_series.SeriesType = SeriesTypes.Anime;
|
|
|
|
_series.SeriesType = SeriesTypes.Anime;
|
|
|
|
_namingConfig.MultiEpisodeStyle = 5;
|
|
|
|
_namingConfig.MultiEpisodeStyle = MultiEpisodeStyle.PrefixedRange;
|
|
|
|
_namingConfig.AnimeEpisodeFormat = "{Series Title} - {absolute:000} - {Episode Title}";
|
|
|
|
_namingConfig.AnimeEpisodeFormat = "{Series Title} - {absolute:000} - {Episode Title}";
|
|
|
|
|
|
|
|
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1, _episode2, _episode3 }, _series, _episodeFile)
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1, _episode2, _episode3 }, _series, _episodeFile)
|
|
|
@ -244,7 +244,7 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
|
|
|
|
public void should_format_single_episode_with_prefixed_range_multi_episode_properly()
|
|
|
|
public void should_format_single_episode_with_prefixed_range_multi_episode_properly()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_namingConfig.StandardEpisodeFormat = "{Series Title} - S{season:00}E{episode:00} - {Episode Title}";
|
|
|
|
_namingConfig.StandardEpisodeFormat = "{Series Title} - S{season:00}E{episode:00} - {Episode Title}";
|
|
|
|
_namingConfig.MultiEpisodeStyle = 5;
|
|
|
|
_namingConfig.MultiEpisodeStyle = MultiEpisodeStyle.PrefixedRange;
|
|
|
|
|
|
|
|
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1 }, _series, _episodeFile)
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1 }, _series, _episodeFile)
|
|
|
|
.Should().Be("South Park - S15E06 - City Sushi");
|
|
|
|
.Should().Be("South Park - S15E06 - City Sushi");
|
|
|
@ -254,7 +254,7 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
|
|
|
|
public void should_format_single_anime_episode_with_prefixed_range_multi_episode_properly()
|
|
|
|
public void should_format_single_anime_episode_with_prefixed_range_multi_episode_properly()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_series.SeriesType = SeriesTypes.Anime;
|
|
|
|
_series.SeriesType = SeriesTypes.Anime;
|
|
|
|
_namingConfig.MultiEpisodeStyle = 5;
|
|
|
|
_namingConfig.MultiEpisodeStyle = MultiEpisodeStyle.PrefixedRange;
|
|
|
|
_namingConfig.AnimeEpisodeFormat = "{Series Title} - {absolute:000} - {Episode Title}";
|
|
|
|
_namingConfig.AnimeEpisodeFormat = "{Series Title} - {absolute:000} - {Episode Title}";
|
|
|
|
|
|
|
|
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1 }, _series, _episodeFile)
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1 }, _series, _episodeFile)
|
|
|
@ -265,7 +265,7 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
|
|
|
|
public void should_format_prefixed_range_multi_episode_using_episode_separator()
|
|
|
|
public void should_format_prefixed_range_multi_episode_using_episode_separator()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_namingConfig.StandardEpisodeFormat = "{Series Title} - {season:0}x{episode:00} - {Episode Title}";
|
|
|
|
_namingConfig.StandardEpisodeFormat = "{Series Title} - {season:0}x{episode:00} - {Episode Title}";
|
|
|
|
_namingConfig.MultiEpisodeStyle = 5;
|
|
|
|
_namingConfig.MultiEpisodeStyle = MultiEpisodeStyle.PrefixedRange;
|
|
|
|
|
|
|
|
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1, _episode2, _episode3 }, _series, _episodeFile)
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1, _episode2, _episode3 }, _series, _episodeFile)
|
|
|
|
.Should().Be("South Park - 15x06-x08 - City Sushi");
|
|
|
|
.Should().Be("South Park - 15x06-x08 - City Sushi");
|
|
|
@ -275,7 +275,7 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
|
|
|
|
public void should_format_range_multi_episode_wrapped_in_brackets()
|
|
|
|
public void should_format_range_multi_episode_wrapped_in_brackets()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_namingConfig.StandardEpisodeFormat = "{Series Title} (S{season:00}E{episode:00}) {Episode Title}";
|
|
|
|
_namingConfig.StandardEpisodeFormat = "{Series Title} (S{season:00}E{episode:00}) {Episode Title}";
|
|
|
|
_namingConfig.MultiEpisodeStyle = 4;
|
|
|
|
_namingConfig.MultiEpisodeStyle = MultiEpisodeStyle.Range;
|
|
|
|
|
|
|
|
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1, _episode2, _episode3 }, _series, _episodeFile)
|
|
|
|
Subject.BuildFileName(new List<Episode> { _episode1, _episode2, _episode3 }, _series, _episodeFile)
|
|
|
|
.Should().Be("South Park (S15E06-08) City Sushi");
|
|
|
|
.Should().Be("South Park (S15E06-08) City Sushi");
|
|
|
|