mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 03:52:33 +02:00
Fixed: No Physical Release Date causing exception when setting last write time.
Fixes #390
This commit is contained in:
parent
0bc61bea38
commit
f9049566c1
@ -53,7 +53,7 @@ private bool ChangeFileDate(MovieFile movieFile, Movie movie)
|
||||
{
|
||||
var airDate = movie.PhysicalRelease;
|
||||
|
||||
if (airDate == null)
|
||||
if (airDate.HasValue == false)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@ -65,7 +65,7 @@ private bool ChangeFileDate(MovieFile movieFile, Movie movie)
|
||||
{
|
||||
var airDate = movie.InCinemas;
|
||||
|
||||
if (airDate == null)
|
||||
if (airDate.HasValue == false)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user