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:
parent
f9b2c2d843
commit
ccb88919b9
|
@ -139,7 +139,7 @@ class MediaManagement extends Component {
|
||||||
<FormInputGroup
|
<FormInputGroup
|
||||||
type={inputTypes.SELECT}
|
type={inputTypes.SELECT}
|
||||||
name="episodeTitleRequired"
|
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}
|
values={episodeTitleRequiredOptions}
|
||||||
onChange={onInputChange}
|
onChange={onInputChange}
|
||||||
{...settings.episodeTitleRequired}
|
{...settings.episodeTitleRequired}
|
||||||
|
|
|
@ -74,9 +74,9 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport.Specifications
|
||||||
var airDateUtc = episode.AirDateUtc;
|
var airDateUtc = episode.AirDateUtc;
|
||||||
var title = episode.Title;
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue