mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-31 12:00:06 -07:00
Fixed tv requests
This commit is contained in:
parent
4a8e7d9eec
commit
432fb683c2
2 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ namespace Ombi.Core.Engine.V2
|
|||
{
|
||||
var show = await Cache.GetOrAdd(nameof(GetShowInformation) + tvdbid,
|
||||
async () => await _movieApi.GetTVInfo(tvdbid), DateTime.Now.AddHours(12));
|
||||
if (show == null)
|
||||
if (show == null || show.name == null)
|
||||
{
|
||||
// We don't have enough information
|
||||
return null;
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
<ng-container matColumnDef="actions">
|
||||
<th mat-header-cell *matHeaderCellDef> </th>
|
||||
<td mat-cell *matCellDef="let element">
|
||||
<button mat-raised-button color="accent" [routerLink]="'/details/tv/' + element.parentRequest.tvDbId">{{'Requests.Details' | translate}}</button>
|
||||
<button mat-raised-button color="accent" [routerLink]="'/details/tv/' + element.parentRequest.externalProviderId">{{'Requests.Details' | translate}}</button>
|
||||
<button mat-raised-button color="warn" (click)="openOptions(element)" *ngIf="isAdmin">{{'Requests.Options' | translate}}</button>
|
||||
</td>
|
||||
</ng-container>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue