mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 14:55:20 -07:00
Added: Improved load times of very large libraries again (around x5)
This commit is contained in:
parent
628c044c46
commit
a9b244bf75
3 changed files with 7 additions and 6 deletions
|
@ -44,14 +44,14 @@ namespace NzbDrone.Api.Movie
|
||||||
|
|
||||||
MovieResource movie = null;
|
MovieResource movie = null;
|
||||||
|
|
||||||
if (model.Movie != null)
|
/*if (model.Movie != null)
|
||||||
{
|
{
|
||||||
model.Movie.LazyLoad();
|
//model.Movie.LazyLoad();
|
||||||
if (model.Movie.Value != null)
|
if (model.Movie.Value != null)
|
||||||
{
|
{
|
||||||
//movie = model.Movie.Value.ToResource();
|
//movie = model.Movie.Value.ToResource();
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
return new MovieFileResource
|
return new MovieFileResource
|
||||||
{
|
{
|
||||||
|
|
|
@ -132,8 +132,8 @@ namespace NzbDrone.Api.Movie
|
||||||
|
|
||||||
var resource = movies.ToResource();
|
var resource = movies.ToResource();
|
||||||
MapCoversToLocal(resource);
|
MapCoversToLocal(resource);
|
||||||
FetchAndLinkMovieStatistics(resource);
|
//FetchAndLinkMovieStatistics(resource);
|
||||||
PopulateAlternateTitles(resource);
|
//PopulateAlternateTitles(resource);
|
||||||
|
|
||||||
return resource;
|
return resource;
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,7 +70,8 @@ namespace NzbDrone.Core.Tv
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
//Well what about Path = Null?
|
//Well what about Path = Null?
|
||||||
return new DirectoryInfo(Path).Name;
|
//return new DirectoryInfo(Path).Name;
|
||||||
|
return Path;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool IsAvailable(int delay = 0)
|
public bool IsAvailable(int delay = 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue