mirror of https://github.com/Radarr/Radarr
Fixes movies not being able to be searched for.
(Very stupid mistake on my part.) Fixes #80
This commit is contained in:
parent
f90e77987e
commit
cfae8807aa
|
@ -80,7 +80,16 @@ namespace NzbDrone.Api.Movie
|
|||
{
|
||||
if (model == null) return null;
|
||||
|
||||
long Size = model.MovieFile.Value != null ? model.MovieFile.Value.Size : 0;
|
||||
|
||||
long size = 0;
|
||||
bool downloaded = false;
|
||||
|
||||
if (model.MovieFile != null && model.MovieFile.IsLoaded && model.MovieFile.Value != null)
|
||||
{
|
||||
size = model.MovieFile.Value.Size;
|
||||
downloaded = true;
|
||||
}
|
||||
//long Size = model.MovieFile != null ? model.MovieFile.Value.Size : 0;
|
||||
|
||||
return new MovieResource
|
||||
{
|
||||
|
@ -92,7 +101,7 @@ namespace NzbDrone.Api.Movie
|
|||
InCinemas = model.InCinemas,
|
||||
PhysicalRelease = model.PhysicalRelease,
|
||||
|
||||
Downloaded = model.MovieFile.Value != null,
|
||||
Downloaded = downloaded,
|
||||
//TotalEpisodeCount
|
||||
//EpisodeCount
|
||||
//EpisodeFileCount
|
||||
|
@ -110,7 +119,7 @@ namespace NzbDrone.Api.Movie
|
|||
|
||||
Monitored = model.Monitored,
|
||||
|
||||
SizeOnDisk = Size,
|
||||
SizeOnDisk = size,
|
||||
|
||||
Runtime = model.Runtime,
|
||||
LastInfoSync = model.LastInfoSync,
|
||||
|
|
Loading…
Reference in New Issue