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);
|
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);
|
var season = mapped.SeasonRequests.FirstOrDefault(x => x.SeasonNumber == e.season);
|
||||||
if (season == null)
|
if (season == null)
|
||||||
|
|
|
@ -2,6 +2,16 @@
|
||||||
<mat-spinner [color]="'accent'"></mat-spinner>
|
<mat-spinner [color]="'accent'"></mat-spinner>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="tv">
|
<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>
|
<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="small-middle-container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<media-poster [posterPath]="tv.images.medium"></media-poster>
|
<media-poster [posterPath]="tv.images?.medium"></media-poster>
|
||||||
|
|
||||||
<!--Next to poster-->
|
<!--Next to poster-->
|
||||||
<div class="col-12 col-lg-3 col-xl-3 media-row">
|
<div class="col-12 col-lg-3 col-xl-3 media-row">
|
||||||
|
@ -107,4 +117,6 @@
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</ng-template>
|
||||||
</div>
|
</div>
|
|
@ -59,7 +59,7 @@ export class TvDetailsComponent implements OnInit {
|
||||||
public async request() {
|
public async request() {
|
||||||
this.dialog.open(EpisodeRequestComponent, { width: "800px", data: this.tv, panelClass: 'modal-panel' })
|
this.dialog.open(EpisodeRequestComponent, { width: "800px", data: this.tv, panelClass: 'modal-panel' })
|
||||||
}
|
}
|
||||||
|
|
||||||
public async issue() {
|
public async issue() {
|
||||||
const dialogRef = this.dialog.open(NewIssueComponent, {
|
const dialogRef = this.dialog.open(NewIssueComponent, {
|
||||||
width: '500px',
|
width: '500px',
|
||||||
|
|
|
@ -214,4 +214,9 @@
|
||||||
.issuesPanel {
|
.issuesPanel {
|
||||||
padding-top: 1%;
|
padding-top: 1%;
|
||||||
padding-bottom: 1%;
|
padding-bottom: 1%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-info {
|
||||||
|
text-align: center;
|
||||||
|
padding-top: 15%;
|
||||||
}
|
}
|
|
@ -226,6 +226,7 @@
|
||||||
"ClearSelection": "Clear Selection",
|
"ClearSelection": "Clear Selection",
|
||||||
"RequestSelectedAlbums": "Request Selected Albums",
|
"RequestSelectedAlbums": "Request Selected Albums",
|
||||||
"ViewCollection":"View Collection",
|
"ViewCollection":"View Collection",
|
||||||
|
"NotEnoughInfo": "Unfortunately there is not enough information about this show yet!",
|
||||||
"Casts": {
|
"Casts": {
|
||||||
"CastTitle": "Cast",
|
"CastTitle": "Cast",
|
||||||
"Character": "Character",
|
"Character": "Character",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue