mirror of
https://github.com/Radarr/Radarr.git
synced 2025-04-23 14:07:20 -04:00
Fixed: Use Digital Release in ChangeFileDate if no Physical
Fixes #5647
This commit is contained in:
parent
7f0b708cb9
commit
1ad2dc54b3
1 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue