Parser Enhancements (#291)

* When matching tracks with metadata, ensure we also check their track number as some albums have two tracks with same title.
This commit is contained in:
Joseph Milazzo
2018-04-13 06:30:56 -05:00
committed by GitHub
parent e67af5e747
commit b661344ba8
3 changed files with 23 additions and 9 deletions
@@ -65,7 +65,7 @@ namespace NzbDrone.Core.Test.ParserTests.ParsingServiceTests
.Returns(_fakeAlbum);
Mocker.GetMock<ITrackService>()
.Setup(s => s.FindTrackByTitle(_fakeArtist.Id, _fakeAlbum.Id, It.IsAny<int>(), _fakeTrack.Title))
.Setup(s => s.FindTrackByTitle(_fakeArtist.Id, _fakeAlbum.Id, It.IsAny<int>(), It.IsAny<int>(), _fakeTrack.Title))
.Returns(_fakeTrack);
}