mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
fixed duplicated episodes coming in from Tvdb
This commit is contained in:
parent
3d3e864094
commit
7560a70dd4
2 changed files with 22 additions and 0 deletions
|
@ -84,6 +84,21 @@ namespace NzbDrone.Core.Test
|
|||
Assert.IsNull(result);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void none_unique_season_episode_number()
|
||||
{
|
||||
//setup
|
||||
var tvdbProvider = new TvDbProvider();
|
||||
|
||||
//act
|
||||
var result = tvdbProvider.GetSeries(75978, true);//Family guy
|
||||
|
||||
//Asserts that when episodes are grouped by Season/Episode each group contains maximum of
|
||||
//one item.
|
||||
result.Episodes.GroupBy(e => e.SeasonNumber.ToString("000") + e.EpisodeNumber.ToString("000"))
|
||||
.Max(e => e.Count()).Should().Be(1);
|
||||
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void American_dad_fix()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue