New: Added album disambiguation to UI and Naming [ex. Weezer (Blue Album)] (#431)

This commit is contained in:
Qstick
2018-07-20 18:33:56 -04:00
committed by GitHub
parent 54d1d90e16
commit e6a43b2dc0
19 changed files with 73 additions and 39 deletions
@@ -33,6 +33,8 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
_album = Builder<Album>
.CreateNew()
.With(s => s.Title = "Hybrid Theory")
.With(s => s.AlbumType = "Album")
.With(s => s.Disambiguation = "The Best Album")
.Build();
@@ -147,6 +149,24 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
.Should().Be("Hybrid Theory");
}
[Test]
public void should_replace_Album_Type()
{
_namingConfig.StandardTrackFormat = "{Album Type}";
Subject.BuildTrackFileName(new List<Track> { _track1 }, _artist, _album, _trackFile)
.Should().Be("Album");
}
[Test]
public void should_replace_Album_Disambiguation()
{
_namingConfig.StandardTrackFormat = "{Album Disambiguation}";
Subject.BuildTrackFileName(new List<Track> { _track1 }, _artist, _album, _trackFile)
.Should().Be("The Best Album");
}
[Test]
public void should_replace_Album_underscore_Title()
{