New: Increase TBA episode title delay to 48 hours (from 24) to deal with TheTVDB's API caching

Closes #4307
This commit is contained in:
Mark McDowall 2022-05-22 17:20:24 -07:00
parent f9b2c2d843
commit ccb88919b9
2 changed files with 3 additions and 3 deletions

View File

@ -139,7 +139,7 @@ class MediaManagement extends Component {
<FormInputGroup
type={inputTypes.SELECT}
name="episodeTitleRequired"
helpText="Prevent importing for up to 24 hours if the episode title is in the naming format and the episode title is TBA"
helpText="Prevent importing for up to 48 hours if the episode title is in the naming format and the episode title is TBA"
values={episodeTitleRequiredOptions}
onChange={onInputChange}
{...settings.episodeTitleRequired}

View File

@ -74,9 +74,9 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport.Specifications
var airDateUtc = episode.AirDateUtc;
var title = episode.Title;
if (airDateUtc.HasValue && airDateUtc.Value.Before(DateTime.UtcNow.AddDays(-1)))
if (airDateUtc.HasValue && airDateUtc.Value.Before(DateTime.UtcNow.AddHours(-48)))
{
_logger.Debug("Episode aired more than 1 day ago");
_logger.Debug("Episode aired more than 48 hours ago");
continue;
}