mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
added the quality to a movie
This commit is contained in:
parent
8123d3e914
commit
1ea6a6dc48
4 changed files with 28 additions and 9 deletions
|
@ -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>
|
||||
|
|
11
src/Ombi/ClientApp/src/app/pipes/QualityPipe.ts
Normal file
11
src/Ombi/ClientApp/src/app/pipes/QualityPipe.ts
Normal file
|
@ -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…
Add table
Add a link
Reference in a new issue