Clean up service manager - move all services to manager

This commit is contained in:
2026-05-02 18:07:57 +01:00
parent 532e7eac81
commit ac4a6db133
6 changed files with 61 additions and 42 deletions
+6 -4
View File
@@ -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',