17 clean up services structure (#18)

* Refactor ClipService and MediaService

* Refactor ClipService for less coupling to Jobs

* PATCH unnecessary requests in frontend

* REFACTOR MetadataService to use CommandRunner

* REFACTOR DirectoryService and UploadService

* REFACTOR ClipService

* MERGE MetadataService with MediaService
This commit is contained in:
Dylan De Faoite
2025-07-26 22:21:56 +02:00
committed by GitHub
parent 618c140449
commit f0a4eed381
10 changed files with 429 additions and 399 deletions

View File

@@ -87,7 +87,15 @@ public class JobService {
SecurityContextHolder.setContext(job.getSecurityContext());
}
clipService.run(job);
clipService.create(
job.getInputVideoMetadata(),
job.getOutputVideoMetadata(),
job.getInputFile(),
job.getOutputFile(),
job.getProgress()
);
job.setStatus(JobStatus.FINISHED);
} catch (IOException | InterruptedException e) {
Thread.currentThread().interrupt();