Clean up service manager - move all services to manager
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import {runCommand} from "./CliService";
|
||||
import {service} from "../core/service";
|
||||
import {inject, service} from "../core/service";
|
||||
import {CliService} from "./CliService";
|
||||
|
||||
@service('ffmpegService')
|
||||
export default class FFMpegService {
|
||||
static async checkFile(filename: string) {
|
||||
const file = await runCommand('ffprobe', [
|
||||
@inject('cliService') protected accessor cliService!: CliService;
|
||||
|
||||
async checkFile(filename: string) {
|
||||
const file = await this.cliService.runCommand('ffprobe', [
|
||||
'-v',
|
||||
'quiet',
|
||||
'-print_format',
|
||||
|
||||
Reference in New Issue
Block a user