mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-21 21:47:05 +00:00
Added absolute episode number to DB
This commit is contained in:
parent
0de4a43cc1
commit
070f6bb318
3 changed files with 19 additions and 3 deletions
17
NzbDrone.Core/Datastore/Migrations/Migration20121012.cs
Normal file
17
NzbDrone.Core/Datastore/Migrations/Migration20121012.cs
Normal file
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Data;
|
||||
using Migrator.Framework;
|
||||
using NzbDrone.Common;
|
||||
|
||||
namespace NzbDrone.Core.Datastore.Migrations
|
||||
{
|
||||
|
||||
[Migration(20121012)]
|
||||
public class Migration20121012 : NzbDroneMigration
|
||||
{
|
||||
protected override void MainDbUpgrade()
|
||||
{
|
||||
Database.AddColumn("Episode", new Column("AbsoluteEpisodeNumber", DbType.Int32, ColumnProperty.Null));
|
||||
}
|
||||
}
|
||||
}
|
|
@ -336,6 +336,7 @@ public virtual void RefreshEpisodeInfo(Series series)
|
|||
episodeToUpdate.TvDbEpisodeId = episode.Id;
|
||||
episodeToUpdate.EpisodeNumber = episode.EpisodeNumber;
|
||||
episodeToUpdate.SeasonNumber = episode.SeasonNumber;
|
||||
episodeToUpdate.AbsoluteEpisodeNumber = episode.AbsoluteEpisodeNumber;
|
||||
episodeToUpdate.Title = episode.EpisodeName;
|
||||
|
||||
episodeToUpdate.Overview = episode.Overview.Truncate(3500);
|
||||
|
|
|
@ -18,12 +18,10 @@ public class Episode
|
|||
public int EpisodeNumber { get; set; }
|
||||
public string Title { get; set; }
|
||||
public DateTime? AirDate { get; set; }
|
||||
|
||||
public string Overview { get; set; }
|
||||
|
||||
public Boolean Ignored { get; set; }
|
||||
|
||||
public PostDownloadStatusType PostDownloadStatus { get; set; }
|
||||
public int AbsoluteEpisodeNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the grab date.
|
||||
|
|
Loading…
Reference in a new issue