added the quality to a movie

pull/3539/head
tidusjar 5 years ago
parent 8123d3e914
commit 1ea6a6dc48

@ -159,14 +159,17 @@ namespace Ombi.Store.Context
};
break;
case NotificationType.WelcomeEmail:
notificationToAdd = new NotificationTemplates
if (agent == NotificationAgent.Email)
{
NotificationType = notificationType,
Message = "Hello! You have been invited to use {ApplicationName}! You can login here: {ApplicationUrl}",
Subject = "Invite to {ApplicationName}",
Agent = agent,
Enabled = true,
};
notificationToAdd = new NotificationTemplates
{
NotificationType = notificationType,
Message = "Hello! You have been invited to use {ApplicationName}! You can login here: {ApplicationUrl}",
Subject = "Invite to {ApplicationName}",
Agent = agent,
Enabled = true,
};
}
break;
case NotificationType.IssueResolved:
notificationToAdd = new NotificationTemplates

@ -18,6 +18,10 @@
<div *ngIf="!movie.requested && !movie.available && !movie.approved">{{'Common.NotRequested' | translate}}
</div>
</div>
<div *ngIf="movie.quality">
<strong>Quality:</strong>
<div>{{movie.quality | quality}}</div>
</div>
<div *ngIf="advancedOptions">
<strong>Root Folder Override</strong>

@ -0,0 +1,11 @@
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({ name: 'quality' })
export class QualityPipe implements PipeTransform {
transform(value: string): string {
if (value.toUpperCase() === "4K" || value.toUpperCase() === "8K") {
return value;
}
return value + "p";
}
}

@ -2,11 +2,12 @@
import { HumanizePipe } from "./HumanizePipe";
import { ThousandShortPipe } from "./ThousandShortPipe";
import { SafePipe } from "./SafePipe";
import { QualityPipe } from "./QualityPipe";
@NgModule({
imports: [],
declarations: [HumanizePipe, ThousandShortPipe, SafePipe],
exports: [HumanizePipe, ThousandShortPipe, SafePipe],
declarations: [HumanizePipe, ThousandShortPipe, SafePipe, QualityPipe],
exports: [HumanizePipe, ThousandShortPipe, SafePipe, QualityPipe],
})
export class PipeModule {

Loading…
Cancel
Save