mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
Added the language to the user profile and fixed a putin bug
This commit is contained in:
parent
e1265046b5
commit
282f5a5d4e
10 changed files with 2403 additions and 9 deletions
|
@ -72,7 +72,7 @@ namespace Ombi.Core.Engine.V2
|
|||
}
|
||||
|
||||
// Setup the task so we can get the data later on if we have a IMDBID
|
||||
Task<TraktShow> traktInfoTask = new Task<TraktShow>(() => null);
|
||||
Task<TraktShow> traktInfoTask = null;
|
||||
if (show.externals?.imdb.HasValue() ?? false)
|
||||
{
|
||||
traktInfoTask = Cache.GetOrAdd("GetExtendedTvInfoTrakt" + show.externals?.imdb,
|
||||
|
@ -168,16 +168,18 @@ namespace Ombi.Core.Engine.V2
|
|||
|
||||
private async Task<SearchFullInfoTvShowViewModel> GetExtraInfo(Task<TraktShow> showInfoTask, SearchFullInfoTvShowViewModel model)
|
||||
{
|
||||
var result = await showInfoTask;
|
||||
if (result == null)
|
||||
if (showInfoTask != null)
|
||||
{
|
||||
return model;
|
||||
var result = await showInfoTask;
|
||||
if (result == null)
|
||||
{
|
||||
return model;
|
||||
}
|
||||
|
||||
model.Trailer = result.Trailer?.AbsoluteUri ?? string.Empty;
|
||||
model.Certification = result.Certification;
|
||||
model.Homepage = result.Homepage?.AbsoluteUri ?? string.Empty;
|
||||
}
|
||||
|
||||
model.Trailer = result.Trailer?.AbsoluteUri ?? string.Empty;
|
||||
model.Certification = result.Certification;
|
||||
model.Homepage = result.Homepage?.AbsoluteUri ?? string.Empty;
|
||||
|
||||
return model;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue