Fixed: Use Digital Release in ChangeFileDate if no Physical

Fixes #5647
This commit is contained in:
Qstick 2022-03-29 22:52:43 -05:00
parent 7f0b708cb9
commit 1ad2dc54b3
1 changed files with 3 additions and 3 deletions

View File

@ -49,14 +49,14 @@ namespace NzbDrone.Core.MediaFiles
{
case FileDateType.Release:
{
var airDate = movie.PhysicalRelease;
var releaseDate = movie.PhysicalRelease ?? movie.DigitalRelease;
if (airDate.HasValue == false)
if (releaseDate.HasValue == false)
{
return false;
}
return ChangeFileDate(movieFilePath, airDate.Value);
return ChangeFileDate(movieFilePath, releaseDate.Value);
}
case FileDateType.Cinemas: