pull/3632/head
Jamie Rees 5 years ago
parent d8b98035de
commit 73353a6aa5

@ -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">
@ -107,4 +117,6 @@
</div>
</section>
</div>
</ng-template>
</div>

@ -59,7 +59,7 @@ export class TvDetailsComponent implements OnInit {
public async request() {
this.dialog.open(EpisodeRequestComponent, { width: "800px", data: this.tv, panelClass: 'modal-panel' })
}
public async issue() {
const dialogRef = this.dialog.open(NewIssueComponent, {
width: '500px',

@ -214,4 +214,9 @@
.issuesPanel {
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…
Cancel
Save