Found where we potentially are setting a new poster path, looks like the entity was being modified and being set as Tracked by entity framework, so the next time we called SaveChangesAsync() it would save the new posterpath on the entity.

This commit is contained in:
Jamie 2017-10-26 08:33:06 +01:00
parent 51c2e13e35
commit 20f3239b94
8 changed files with 51 additions and 15 deletions

View file

@ -21,7 +21,8 @@ namespace Ombi.Notifications
Type = req.RequestType.ToString();
Overview = req.Overview;
Year = req.ReleaseDate.Year.ToString();
PosterImage = req.PosterPath;
PosterImage = req.RequestType == RequestType.Movie ?
$"https://image.tmdb.org/t/p/w300/{req.PosterPath}" : req.PosterPath;
}
public void Setup(ChildRequests req, CustomizationSettings s)
@ -36,7 +37,8 @@ namespace Ombi.Notifications
Type = req.RequestType.ToString();
Overview = req.ParentRequest.Overview;
Year = req.ParentRequest.ReleaseDate.Year.ToString();
PosterImage = req.ParentRequest.PosterPath;
PosterImage = req.RequestType == RequestType.Movie ?
$"https://image.tmdb.org/t/p/w300/{req.ParentRequest.PosterPath}" : req.ParentRequest.PosterPath;
// DO Episode and Season Lists
}