mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Improved: Episodes that are in the future AND have no title will not be added to db (place holder episodes in TVDB)
This commit is contained in:
parent
9bee9be397
commit
9fcb3a4573
2 changed files with 148 additions and 0 deletions
|
@ -282,6 +282,11 @@ namespace NzbDrone.Core.Providers
|
|||
{
|
||||
try
|
||||
{
|
||||
//skip episodes that are too far in the future and have no title.
|
||||
if ((episode.FirstAired > DateTime.Now.AddDays(2) || episode.FirstAired.Year < 1900) &&
|
||||
string.IsNullOrWhiteSpace(episode.EpisodeName))
|
||||
continue;
|
||||
|
||||
Logger.Trace("Updating info for [{0}] - S{1}E{2}", tvDbSeriesInfo.SeriesName, episode.SeasonNumber, episode.EpisodeNumber);
|
||||
|
||||
//first check using tvdbId, this should cover cases when and episode number in a season is changed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue