mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-13 16:52:56 -07:00
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:
parent
51c2e13e35
commit
20f3239b94
8 changed files with 51 additions and 15 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue