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

Closes #4307
pull/5038/head
Mark McDowall 2 years ago
parent f9b2c2d843
commit ccb88919b9

@ -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}

@ -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;
}

Loading…
Cancel
Save