mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-13 00:32:57 -07:00
Fixed #3619
This commit is contained in:
parent
d8b98035de
commit
73353a6aa5
5 changed files with 21 additions and 3 deletions
|
@ -81,7 +81,7 @@ namespace Ombi.Core.Engine.V2
|
|||
|
||||
var mapped = Mapper.Map<SearchFullInfoTvShowViewModel>(show);
|
||||
|
||||
foreach (var e in show._embedded.episodes)
|
||||
foreach (var e in show._embedded?.episodes ?? new Api.TvMaze.Models.V2.Episode[0])
|
||||
{
|
||||
var season = mapped.SeasonRequests.FirstOrDefault(x => x.SeasonNumber == e.season);
|
||||
if (season == null)
|
||||
|
|
|
@ -2,6 +2,16 @@
|
|||
<mat-spinner [color]="'accent'"></mat-spinner>
|
||||
</div>
|
||||
<div *ngIf="tv">
|
||||
<div *ngIf="tv.id === 0; else main">
|
||||
<div class="small-middle-container no-info">
|
||||
<h1><i class="fa fa-frown-o" aria-hidden="true"></i></h1><h3> {{ 'MediaDetails.NotEnoughInfo' | translate }}</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<ng-template #main>
|
||||
|
||||
<div>
|
||||
|
||||
<top-banner [background]="tv.background" [available]="tv.available" [title]="tv.title" [releaseDate]="tv.firstAired" [tagline]="tv.certification"></top-banner>
|
||||
|
||||
|
@ -9,7 +19,7 @@
|
|||
<div class="small-middle-container">
|
||||
<div class="row">
|
||||
|
||||
<media-poster [posterPath]="tv.images.medium"></media-poster>
|
||||
<media-poster [posterPath]="tv.images?.medium"></media-poster>
|
||||
|
||||
<!--Next to poster-->
|
||||
<div class="col-12 col-lg-3 col-xl-3 media-row">
|
||||
|
@ -108,3 +118,5 @@
|
|||
</section>
|
||||
|
||||
</div>
|
||||
</ng-template>
|
||||
</div>
|
|
@ -215,3 +215,8 @@
|
|||
padding-top: 1%;
|
||||
padding-bottom: 1%;
|
||||
}
|
||||
|
||||
.no-info {
|
||||
text-align: center;
|
||||
padding-top: 15%;
|
||||
}
|
|
@ -226,6 +226,7 @@
|
|||
"ClearSelection": "Clear Selection",
|
||||
"RequestSelectedAlbums": "Request Selected Albums",
|
||||
"ViewCollection":"View Collection",
|
||||
"NotEnoughInfo": "Unfortunately there is not enough information about this show yet!",
|
||||
"Casts": {
|
||||
"CastTitle": "Cast",
|
||||
"Character": "Character",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue