mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-08 14:10:50 -07:00
Fixed #955
This commit is contained in:
parent
eec7d42a88
commit
05fbdf2a38
2 changed files with 6 additions and 1 deletions
|
@ -235,6 +235,8 @@ namespace Ombi.UI.Modules
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var canManageRequest = Security.HasAnyPermissions(User, Permissions.Administrator, Permissions.ManageRequests);
|
var canManageRequest = Security.HasAnyPermissions(User, Permissions.Administrator, Permissions.ManageRequests);
|
||||||
var viewModel = dbTv.Select(tv => new RequestViewModel
|
var viewModel = dbTv.Select(tv => new RequestViewModel
|
||||||
{
|
{
|
||||||
|
@ -243,6 +245,7 @@ namespace Ombi.UI.Modules
|
||||||
Status = tv.Status,
|
Status = tv.Status,
|
||||||
ImdbId = tv.ImdbId,
|
ImdbId = tv.ImdbId,
|
||||||
Id = tv.Id,
|
Id = tv.Id,
|
||||||
|
//PosterPath = tv.PosterPath.Contains("http:") ? tv.PosterPath.Replace("http:", "https:") : tv.PosterPath,
|
||||||
PosterPath = tv.PosterPath,
|
PosterPath = tv.PosterPath,
|
||||||
ReleaseDate = tv.ReleaseDate,
|
ReleaseDate = tv.ReleaseDate,
|
||||||
ReleaseDateTicks = tv.ReleaseDate.Ticks,
|
ReleaseDateTicks = tv.ReleaseDate.Ticks,
|
||||||
|
|
|
@ -693,11 +693,13 @@ namespace Ombi.UI.Modules
|
||||||
DateTime.TryParse(showInfo.premiered, out firstAir);
|
DateTime.TryParse(showInfo.premiered, out firstAir);
|
||||||
string fullShowName = $"{showInfo.name} ({firstAir.Year})";
|
string fullShowName = $"{showInfo.name} ({firstAir.Year})";
|
||||||
|
|
||||||
|
// For some reason the poster path is always http
|
||||||
|
var posterPath = showInfo.image?.medium.Replace("http:", "https:");
|
||||||
var model = new RequestedModel
|
var model = new RequestedModel
|
||||||
{
|
{
|
||||||
Type = RequestType.TvShow,
|
Type = RequestType.TvShow,
|
||||||
Overview = showInfo.summary.RemoveHtml(),
|
Overview = showInfo.summary.RemoveHtml(),
|
||||||
PosterPath = showInfo.image?.medium,
|
PosterPath = posterPath,
|
||||||
Title = showInfo.name,
|
Title = showInfo.name,
|
||||||
ReleaseDate = firstAir,
|
ReleaseDate = firstAir,
|
||||||
Status = showInfo.status,
|
Status = showInfo.status,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue