1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-17 15:02:34 +02:00

Added: Improved load times of very large libraries again (around x5)

This commit is contained in:
Leonardo Galli 2017-10-05 23:31:12 +02:00
parent 628c044c46
commit a9b244bf75
3 changed files with 7 additions and 6 deletions

View File

@ -44,14 +44,14 @@ public static MovieFileResource ToResource(this MovieFile model)
MovieResource movie = null;
if (model.Movie != null)
/*if (model.Movie != null)
{
model.Movie.LazyLoad();
//model.Movie.LazyLoad();
if (model.Movie.Value != null)
{
//movie = model.Movie.Value.ToResource();
}
}
}*/
return new MovieFileResource
{

View File

@ -132,8 +132,8 @@ protected MovieResource MapToResource(Core.Tv.Movie movies)
var resource = movies.ToResource();
MapCoversToLocal(resource);
FetchAndLinkMovieStatistics(resource);
PopulateAlternateTitles(resource);
//FetchAndLinkMovieStatistics(resource);
//PopulateAlternateTitles(resource);
return resource;
}

View File

@ -70,7 +70,8 @@ public string FolderName()
return "";
}
//Well what about Path = Null?
return new DirectoryInfo(Path).Name;
//return new DirectoryInfo(Path).Name;
return Path;
}
public bool IsAvailable(int delay = 0)