mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-25 22:36:59 -04:00
New: Added album disambiguation to UI and Naming [ex. Weezer (Blue Album)] (#431)
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user