mirror of https://github.com/VERT-sh/VERT.git
feat: add way to tell if a converter reports progress
This commit is contained in:
parent
4b9ae955d7
commit
18d8e57bb5
|
@ -18,6 +18,7 @@ export class Converter {
|
|||
* @param to The format to convert to. Includes the dot.
|
||||
*/
|
||||
public ready: boolean = $state(false);
|
||||
public readonly reportsProgress: boolean = false;
|
||||
|
||||
public async convert(
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
|
|
|
@ -24,6 +24,8 @@ export class FFmpegConverter extends Converter {
|
|||
".aiff",
|
||||
];
|
||||
|
||||
public readonly reportsProgress = true;
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
log(["converters", this.name], `created converter`);
|
||||
|
|
|
@ -29,6 +29,8 @@ export class VipsConverter extends Converter {
|
|||
".tiff",
|
||||
];
|
||||
|
||||
public readonly reportsProgress = false;
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
log(["converters", this.name], `created converter`);
|
||||
|
|
Loading…
Reference in New Issue