mirror of https://github.com/Ombi-app/Ombi
parent
8123d3e914
commit
1ea6a6dc48
@ -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";
|
||||
}
|
||||
}
|
Loading…
Reference in new issue