diff --git a/src/NzbDrone.Core/Datastore/Migration/067_add_added_to_series.cs b/src/NzbDrone.Core/Datastore/Migration/067_add_added_to_series.cs
new file mode 100644
index 000000000..cb0923e18
--- /dev/null
+++ b/src/NzbDrone.Core/Datastore/Migration/067_add_added_to_series.cs
@@ -0,0 +1,14 @@
+using FluentMigrator;
+using NzbDrone.Core.Datastore.Migration.Framework;
+
+namespace NzbDrone.Core.Datastore.Migration
+{
+ [Migration(67)]
+ public class add_added_to_series : NzbDroneMigrationBase
+ {
+ protected override void MainDbUpgrade()
+ {
+ Alter.Table("Series").AddColumn("Added").AsDateTime().Nullable();
+ }
+ }
+}
diff --git a/src/NzbDrone.Core/NzbDrone.Core.csproj b/src/NzbDrone.Core/NzbDrone.Core.csproj
index 64f055d7b..b9936358e 100644
--- a/src/NzbDrone.Core/NzbDrone.Core.csproj
+++ b/src/NzbDrone.Core/NzbDrone.Core.csproj
@@ -231,6 +231,7 @@
+
diff --git a/src/NzbDrone.Core/Tv/Series.cs b/src/NzbDrone.Core/Tv/Series.cs
index 3717a36e7..9ffc673c0 100644
--- a/src/NzbDrone.Core/Tv/Series.cs
+++ b/src/NzbDrone.Core/Tv/Series.cs
@@ -25,7 +25,7 @@ namespace NzbDrone.Core.Tv
public string SortTitle { get; set; }
public SeriesStatusType Status { get; set; }
public string Overview { get; set; }
- public String AirTime { get; set; }
+ public string AirTime { get; set; }
public bool Monitored { get; set; }
public int ProfileId { get; set; }
public bool SeasonFolder { get; set; }
@@ -41,10 +41,9 @@ namespace NzbDrone.Core.Tv
public Ratings Ratings { get; set; }
public List Genres { get; set; }
public List Actors { get; set; }
- public String Certification { get; set; }
-
+ public string Certification { get; set; }
public string RootFolderPath { get; set; }
-
+ public DateTime Added { get; set; }
public DateTime? FirstAired { get; set; }
public LazyLoaded Profile { get; set; }
@@ -53,7 +52,7 @@ namespace NzbDrone.Core.Tv
public override string ToString()
{
- return string.Format("[{0}][{1}]", TvdbId, Title.NullSafe());
+ return String.Format("[{0}][{1}]", TvdbId, Title.NullSafe());
}
}
}
\ No newline at end of file
diff --git a/src/NzbDrone.Core/Tv/SeriesService.cs b/src/NzbDrone.Core/Tv/SeriesService.cs
index 58586d6cb..1b786f1b0 100644
--- a/src/NzbDrone.Core/Tv/SeriesService.cs
+++ b/src/NzbDrone.Core/Tv/SeriesService.cs
@@ -78,6 +78,7 @@ namespace NzbDrone.Core.Tv
newSeries.Monitored = true;
newSeries.CleanTitle = newSeries.Title.CleanSeriesTitle();
newSeries.SortTitle = SeriesTitleNormalizer.Normalize(newSeries.Title, newSeries.TvdbId);
+ newSeries.Added = DateTime.UtcNow;
_seriesRepository.Insert(newSeries);
_eventAggregator.PublishEvent(new SeriesAddedEvent(GetSeries(newSeries.Id)));