mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 03:52:33 +02:00
Fixed: Use Digital Release in ChangeFileDate if no Physical
Fixes #5647
This commit is contained in:
parent
7f0b708cb9
commit
1ad2dc54b3
@ -49,14 +49,14 @@ private bool ChangeFileDate(MovieFile movieFile, Movie movie)
|
|||||||
{
|
{
|
||||||
case FileDateType.Release:
|
case FileDateType.Release:
|
||||||
{
|
{
|
||||||
var airDate = movie.PhysicalRelease;
|
var releaseDate = movie.PhysicalRelease ?? movie.DigitalRelease;
|
||||||
|
|
||||||
if (airDate.HasValue == false)
|
if (releaseDate.HasValue == false)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ChangeFileDate(movieFilePath, airDate.Value);
|
return ChangeFileDate(movieFilePath, releaseDate.Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
case FileDateType.Cinemas:
|
case FileDateType.Cinemas:
|
||||||
|
Loading…
Reference in New Issue
Block a user