diff --git a/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj b/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj
index 02b666d32..0dddbc9b5 100644
--- a/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj
+++ b/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj
@@ -154,6 +154,7 @@
+
diff --git a/NzbDrone.Core.Test/TvTests/EpisodeRepositoryTests/EpisodesBetweenDatesFixture.cs b/NzbDrone.Core.Test/TvTests/EpisodeRepositoryTests/EpisodesBetweenDatesFixture.cs
new file mode 100644
index 000000000..9dd1fbe3f
--- /dev/null
+++ b/NzbDrone.Core.Test/TvTests/EpisodeRepositoryTests/EpisodesBetweenDatesFixture.cs
@@ -0,0 +1,43 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using FizzWare.NBuilder;
+using FluentAssertions;
+using NUnit.Framework;
+using NzbDrone.Core.Test.Framework;
+using NzbDrone.Core.Tv;
+using NzbDrone.Test.Common;
+
+namespace NzbDrone.Core.Test.TvTests.EpisodeRepositoryTests
+{
+ [TestFixture]
+ public class EpisodesBetweenDatesFixture : DbTest
+ {
+ [SetUp]
+ public void Setup()
+ {
+ var series = Builder.CreateNew()
+ .With(s => s.Id = 0)
+ .With(s => s.Runtime = 30)
+ .Build();
+
+ series.Id = Db.Insert(series).Id;
+
+ var episode = Builder.CreateNew()
+ .With(e => e.Id = 0)
+ .With(e => e.SeriesId = series.Id)
+ .Build();
+
+ Db.Insert(episode);
+ }
+
+ [Test]
+ public void should_get_episodes_with_attached_series()
+ {
+ var episodes = Subject.EpisodesBetweenDates(DateTime.Today.AddDays(-1), DateTime.Today.AddDays(3));
+ episodes.Should().HaveCount(1);
+ episodes.First().Series.Should().NotBeNull();
+ }
+ }
+}
diff --git a/NzbDrone.Core/Tv/EpisodeRepository.cs b/NzbDrone.Core/Tv/EpisodeRepository.cs
index 98d43f634..443f048c9 100644
Binary files a/NzbDrone.Core/Tv/EpisodeRepository.cs and b/NzbDrone.Core/Tv/EpisodeRepository.cs differ