mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-10-29 23:12:39 +01:00
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
|
||||
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…
Reference in New Issue
Block a user